[DNM] Retrigger linux x86 wheel builds #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Wheel Builds | |
on: | |
push: | |
branches: [ 'retrigger-wheel-builds' ] | |
jobs: | |
sdist: | |
name: Build sdist | |
runs-on: ubuntu-latest | |
needs: ["build_wheels"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Install deps | |
run: pip install -U twine setuptools-rust | |
- name: Build sdist | |
run: python setup.py sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./dist/* | |
- name: Upload to PyPI | |
run: twine upload ./dist/* | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
TWINE_USERNAME: retworkx-ci | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install cibuildwheel==2.10.1 twine | |
- name: Build wheels | |
run: | | |
python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BEFORE_ALL_LINUX: "yum install -y wget && {package}/tools/install_rust.sh" | |
CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"' | |
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 | |
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64:latest | |
CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux2014_i686:latest | |
CIBW_SKIP: cp36-* pp* *win32 *musl* | |
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | |
CIBW_TEST_REQUIRES: networkx testtools fixtures | |
CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/rustworkx_tests | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
- name: Upload to PyPI | |
run: twine upload ./wheelhouse/*.whl | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
TWINE_USERNAME: retworkx-ci | |
retworkx-compat-build: | |
name: Build retworkx | |
runs-on: ubuntu-latest | |
needs: ["build_wheels"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.10' | |
- name: Install deps | |
run: pip install -U twine setuptools-rust | |
- name: Build sdist | |
run: python setup.py bdist_wheel | |
env: | |
RUSTWORKX_PKG_NAME: retworkx | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./dist/* | |
- name: Upload to PyPI | |
run: twine upload ./dist/* | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
TWINE_USERNAME: retworkx-ci |