Fix build for Mac

This commit is contained in:
ExPikaPaka
2026-06-04 14:22:04 +02:00
parent 7fa650e410
commit d314e9c09a
2 changed files with 8 additions and 1 deletions

View File

@@ -61,6 +61,8 @@ jobs:
run: | run: |
if [ "$(uname)" = "Linux" ]; then if [ "$(uname)" = "Linux" ]; then
pip3 install grpcio-tools pip3 install grpcio-tools
else
brew install protobuf
fi fi
python3 tools/run_codegen.py python3 tools/run_codegen.py
if: runner.os != 'Windows' if: runner.os != 'Windows'
@@ -114,7 +116,7 @@ jobs:
if: runner.os == 'macOS' && !inputs.macos-combine-only if: runner.os == 'macOS' && !inputs.macos-combine-only
run: | run: |
if [ -z "${{ vars.SELF_HOSTED }}" ]; then if [ -z "${{ vars.SELF_HOSTED }}" ]; then
brew install libtool protobuf brew install libtool
brew list brew list
fi fi
mkdir -p ${{ github.workspace }}/deps/build/${{ inputs.arch }} mkdir -p ${{ github.workspace }}/deps/build/${{ inputs.arch }}

View File

@@ -326,6 +326,8 @@ modules:
- name: OrcaSlicer - name: OrcaSlicer
buildsystem: simple buildsystem: simple
build-commands: build-commands:
- pip3 install grpcio-tools -q
- python3 tools/run_codegen.py
- | - |
cmake . -B build_flatpak \ cmake . -B build_flatpak \
-DFLATPAK=ON \ -DFLATPAK=ON \
@@ -375,6 +377,9 @@ modules:
- type: dir - type: dir
path: ../../localization path: ../../localization
dest: localization dest: localization
- type: dir
path: ../../tools
dest: tools
- type: file - type: file
path: ../../CMakeLists.txt path: ../../CMakeLists.txt