Skip to content

Commit 8a15c89

Browse files
committed
Add macos universal build
1 parent bb0d832 commit 8a15c89

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313

1414
env:
1515
BUILD_DIR: ./build
16+
SOURCES_DIR: ./
1617

1718
name: 🏗️ Build Bindings
1819

@@ -23,33 +24,33 @@ jobs:
2324

2425
matrix:
2526
backend: [WebKit, WebKitGtk, WebView2, Qt]
26-
config: [Release]
2727

2828
include:
2929
- backend: WebView2
3030
platform: Windows
3131
os: windows-latest
32-
cmake-args: -Dsaucer_msvc_hack=ON -Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON
32+
cmake-args: '-Dsaucer_msvc_hack=ON -Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON'
3333

3434
- backend: Qt
3535
platform: Linux
3636
os: ubuntu-latest
3737
container: archlinux:base-devel
38-
cmake-args: -Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON
38+
cmake-args: '-Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON'
3939

4040
- backend: WebKitGtk
4141
platform: Linux
4242
os: ubuntu-latest
4343
container: archlinux:base-devel
44-
cmake-args: -Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON
44+
cmake-args: '-Dglaze_DISABLE_SIMD_WHEN_SUPPORTED=ON'
4545

4646
- backend: WebKit
4747
platform: MacOS
4848
os: macos-latest
49+
cmake-args: '-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"'
4950

5051
runs-on: ${{ matrix.os }}
5152
container: ${{ matrix.container }}
52-
name: bindings-${{ matrix.backend }}-${{ matrix.config }}
53+
name: bindings-${{ matrix.backend }}
5354

5455
steps:
5556
- name: 📥 Checkout
@@ -68,8 +69,10 @@ jobs:
6869
with:
6970
backend: ${{ matrix.backend-override || matrix.backend }}
7071
platform: ${{ matrix.platform }}
71-
build-type: ${{ matrix.config }}
72+
build-type: Release
7273
cmake-args: ${{ matrix.cmake-args }}
74+
src-dir: ${{ env.SOURCES_DIR }}
75+
build-dir: ${{ env.BUILD_DIR }}
7376

7477
- name: 📦 Upload Artifact
7578
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)