-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 891 Bytes
/
pr.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
33
34
35
36
name: pr
on:
pull_request:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# for a PR we just check if it can build for python=3.12
steps:
- uses: actions/checkout@v3
- name: Clone Suitesparse
run: make suitesparse
- name: Clone XLA
run: make xla
- name: Clone Pybind11
run: make pybind11
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_BUILD: '*cp312*'
CIBW_SKIP: '*-musllinux* pp*'
CIBW_BEFORE_TEST: 'pip install pytest'
CIBW_TEST_COMMAND: 'python {project}/.github/run_tests.py'