From fecc0baf7adf536517e358c23cb93c2044942e44 Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Wed, 31 Jan 2024 10:14:54 -0800 Subject: [PATCH 1/2] Use GHA M1 runners for macOS builds --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5ca4a6..a509a84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,13 +71,12 @@ jobs: build: "" artifact_suffix: "windows_x86" use_qemu: false - - os: macos-11 - arch: "x86_64 universal2 arm64" + - os: macos-14 + arch: "arm64 universal2 x86_64" build: "" artifact_suffix: "macos" use_qemu: false - steps: - uses: actions/checkout@v4 with: From fcd4a6fc0c2849b8ed196954574fe663d96635f0 Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Wed, 31 Jan 2024 11:50:22 -0800 Subject: [PATCH 2/2] Add a workflow step to install ninja on macOS before cibuildwheel --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a509a84..d59f9fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,10 @@ jobs: mingw-w64-${{matrix.mingw_env}}-toolchain if: runner.os == 'Windows' + - name: Install ninja (macOS) + run: which ninja || brew install ninja + if: runner.os == 'macOS' + - name: Build wheels uses: pypa/cibuildwheel@v2.16.5 env: