From ecaec247b101a323ce4df4abe79e98f90e84f6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Perceval=20Wajsb=C3=BCrt?= Date: Mon, 4 Dec 2023 16:11:01 +0100 Subject: [PATCH] ci: update runners and add arm64 builds for macos --- .github/workflows/release.yml | 8 +++++--- .github/workflows/test-build.yml | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44544e6f9..bd60eb1aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,17 +15,19 @@ on: jobs: build_wheels: - name: Build wheels on ${{ matrix.os }} + name: Build wheels on ${{ matrix.os }}/${{ matrix.arch || '*' }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macos-latest] + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - name: Build wheels - uses: pypa/cibuildwheel@v2.4.0 + uses: pypa/cibuildwheel@v2.16.2 + env: + CIBW_ARCHS_MACOS: "x86_64 arm64" - uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index f66afdcbe..30c6d563b 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -17,13 +17,15 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15] + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - name: Build wheels - uses: pypa/cibuildwheel@v2.4.0 + uses: pypa/cibuildwheel@v2.16.2 + env: + CIBW_ARCHS_MACOS: "x86_64 arm64" build_sdist: name: Build source distribution