diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 639e36e8de..1fe5d1335b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,5 +1,6 @@ --- name: Wheel Builds + on: push: tags: @@ -44,7 +45,7 @@ jobs: toolchain: stable - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==1.6.3 twine + python -m pip install cibuildwheel==1.9.0 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -57,7 +58,25 @@ jobs: CIBW_SKIP: cp27-* cp34-* cp35-* pp* *win32 CIBW_BEFORE_BUILD: pip install -U setuptools-rust CIBW_TEST_COMMAND: python -m unittest discover {project}/tests - + - uses: actions/upload-artifact@v2 + with: + path: ./wheelhouse/*.whl + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci + build-mac-arm-wheels: + name: Build wheels on macos for arm + runs-on: macos-10.15 + steps: + - uses: actions/checkout@v2 + - name: Build wheels + uses: joerick/cibuildwheel@v1.9.0 + env: + CIBW_ARCHS_MACOS: arm64 + CIBW_BEFORE_BUILD: pip install -U setuptools-rust + CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" - uses: actions/upload-artifact@v2 with: path: ./wheelhouse/*.whl @@ -85,7 +104,7 @@ jobs: run: rustup default stable-i686-pc-windows-msvc - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==1.6.3 twine + python -m pip install cibuildwheel==1.9.0 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse