From 76d02618b5f93306734d2e8e28b92a1380751cda Mon Sep 17 00:00:00 2001 From: Thien Tran Date: Tue, 28 Feb 2023 18:29:40 +0800 Subject: [PATCH] Build MacOS ARM64 binaries with GHA (#29) * add macos-aarch64 job * try to trigger GHA * remove push trigger * merge mac arm64 job definition * shorten some strings --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a094f78c..daf36a8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,7 @@ jobs: strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + target: [x86_64, aarch64] steps: - uses: ilammy/setup-nasm@v1 - uses: actions/checkout@v3 @@ -56,12 +57,13 @@ jobs: with: profile: minimal toolchain: stable + target: ${{ matrix.target }}-apple-darwin override: true - uses: messense/maturin-action@v1 with: maturin-version: latest command: build - args: --release --out dist -i python${{ matrix.python-version }} + args: --target ${{ matrix.target }}-apple-darwin --release --out dist -i python${{ matrix.python-version }} - name: Upload wheels uses: actions/upload-artifact@v2 with: