From 46bdbbbe8353bc5c66ec3e2fecc0a0f8de8b33fe Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Sun, 23 Apr 2023 10:00:35 -0600 Subject: [PATCH 1/3] mac arm64 build --- .github/workflows/build.yml | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6296bf49e..836733f51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,6 +99,59 @@ jobs: name: dist path: target/wheels/* + build-macos-aarch64: + needs: [generate-license] + name: Mac arm64 + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10"] + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Set up Rust targets + run: rustup target add aarch64-apple-darwin + + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install maturin + run: pip install maturin==0.14.2 + + - run: rm LICENSE.txt + - name: Download LICENSE.txt + uses: actions/download-artifact@v3 + with: + name: python-wheel-license + path: . + + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.x' + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Python package + run: maturin build --release --strip + + - name: List Mac wheels + run: find target/wheels/ + + - name: Archive wheels + uses: actions/upload-artifact@v3 + with: + name: dist + path: target/wheels/* + build-manylinux: needs: [generate-license] name: Manylinux From 3bd325002fbc4f278faeac1ec4961cd14822f928 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Sun, 23 Apr 2023 11:31:08 -0600 Subject: [PATCH 2/3] fix? --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 836733f51..039d881a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -141,8 +141,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build Python package - run: maturin build --release --strip - + run: maturin build --release --strip --target aarch64-apple-darwin --no-sdist - name: List Mac wheels run: find target/wheels/ From 804322e2008ebf2aa918f9710672895d1a1f3dba Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Sun, 23 Apr 2023 11:54:05 -0600 Subject: [PATCH 3/3] fix? --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 039d881a0..c667dab80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -141,7 +141,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build Python package - run: maturin build --release --strip --target aarch64-apple-darwin --no-sdist + run: maturin build --release --strip --target aarch64-apple-darwin - name: List Mac wheels run: find target/wheels/