Skip to content

fail-fast

fail-fast #46

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # remove eventually. This is for debugging
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: ${{ !startsWith(matrix.os, 'ubuntu') }}
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_TEST_REQUIRES: pytest
CIBW_SKIP: musllinux_i686
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_BEFORE_BUILD_LINUX: "curl -o rustup.sh --proto '=https' --tlsv1.2 https://sh.rustup.rs && sh ./rustup.sh -y || apk add --no-cache rust cargo"
CIBW_ENVIRONMENT: PATH=$PATH:$HOME/.cargo/bin
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl