Skip to content

Commit

Permalink
mac arm64 build (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove authored Apr 23, 2023
1 parent 1629805 commit fb3c6e2
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,58 @@ 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 --target aarch64-apple-darwin
- 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
Expand Down

0 comments on commit fb3c6e2

Please sign in to comment.