diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6296bf49e..c667dab80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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