Skip to content

Commit 8d58906

Browse files
committed
Fix macOS builds on Intel (#905)
Fixes #904
1 parent d7307c8 commit 8d58906

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/pr-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ jobs:
7575
set -eo pipefail
7676
mkdir build
7777
cd build
78-
cmake .. -DCMAKE_BUILD_TYPE=Release
78+
if [ "${{ matrix.arch }}" == "x86_64" ]; then
79+
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}"
80+
else
81+
cmake .. -DCMAKE_BUILD_TYPE=Release
82+
fi
7983
cmake --build . --parallel
8084
8185
- name: Bundle

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
set -eo pipefail
4040
mkdir build
4141
cd build
42-
cmake .. -DCMAKE_BUILD_TYPE=Release
42+
if [ "${{ matrix.arch }}" == "x86_64" ]; then
43+
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}"
44+
else
45+
cmake .. -DCMAKE_BUILD_TYPE=Release
46+
fi
4347
cmake --build . --parallel
4448
4549
- name: Bundle

0 commit comments

Comments
 (0)