Skip to content

Commit

Permalink
🐛 try fix mac build arch in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed May 27, 2024
1 parent 67ee11c commit 1c13eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Build application
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake -B build/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build build/ --config Release --target all
# Deploy application
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Build application
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake -B build/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build build/ --config Release --target all
# Deploy application
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Build application
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake -B build/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build build/ --config Release --target all
# Deploy application
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Build application
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake -B build/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build build/ --config Release --target all
# Deploy application
Expand Down

0 comments on commit 1c13eff

Please sign in to comment.