-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (26 loc) · 1018 Bytes
/
build_wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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