From e58a44f88ff530ceafa91f52301e5e6d7cae4437 Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Wed, 4 Oct 2023 22:13:38 +0200 Subject: [PATCH] chore(ci): add arm linux & mac wheels --- .github/workflows/wheels.yml | 39 +++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 71388247..0ab1f8b1 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -8,8 +8,24 @@ on: jobs: manylinux2014: - runs-on: ubuntu-latest + runs-on: ${{ matrix.runner }} container: quay.io/pypa/manylinux2014_x86_64 + strategy: + matrix: + runner: [ubuntu-latest, ubuntu-arm-latest] + include: + - runner: ubuntu-latest + python: 3.11 + os: ubuntu-latest + release-os: linux + release-arch: amd64 + runner: [ubuntu-latest] + - runner: ubuntu-arm-latest + python: 3.11 + os: ubuntu-latest + release-os: linux + release-arch: aarch64 + runner: [self-hosted, linux, ARM64] steps: - uses: actions/checkout@v3 - name: Install stable rust @@ -30,13 +46,30 @@ jobs: path: target/wheels/*.whl osx: - runs-on: macos-latest + # runs-on: macos-latest + runs-on: ${{ matrix.runner }} + strategy: + matrix: + runner: [macOS-latest, macOS-arm-latest] + include: + - runner: macOS-latest + python: 3.11 + os: macOS-latest + release-os: darwin + release-arch: x86_64 + runner: [macOS-latest] + - runner: macOS-arm-latest + python: 3.11 + os: macOS-latest + release-os: darwin + release-arch: aarch64 + runner: [self-hosted, macOS, ARM64] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: ${{ matrix.python }} - name: Install maturin & uniffi-bindgen run: | pip install maturin uniffi-bindgen