From b1c40d5fa74af0eddd76297a8cb296c11b971e36 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Mon, 12 Sep 2022 15:24:13 -0500 Subject: [PATCH] Run MacOS builds in parallel (#171) --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a7f0cfb190..5fc6e97cac 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,7 @@ env: PYTHON_VERSION: "3.7" # to build abi3 wheels jobs: - macos: + macos-x86_64: runs-on: macos-latest steps: - uses: actions/checkout@v3 @@ -39,6 +39,25 @@ jobs: - name: Install built wheel - x86_64 run: | pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall + - name: Upload wheels + uses: actions/upload-artifact@v2 + with: + name: wheels + path: dist + macos-universal: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} + architecture: x64 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + default: true - name: Build wheels - universal2 uses: messense/maturin-action@v1 with: @@ -261,7 +280,8 @@ jobs: name: Release runs-on: ubuntu-latest needs: - - macos + - macos-universal + - macos-x86_64 - windows - linux - linux-cross