Skip to content

Commit eac87a7

Browse files
authored
Update workflow to build Python wheels using cibuildwheel
1 parent b427a9b commit eac87a7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build Wheels (cbuild-nox)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
16+
# Used to host cibuildwheel
17+
- uses: actions/setup-python@v5
18+
19+
- name: Install cibuildwheel
20+
run: python -m pip install cibuildwheel==3.2.1
21+
22+
- name: Build wheels
23+
run: python -m cibuildwheel --output-dir wheelhouse
24+
# to supply options, put them in 'env', like:
25+
# env:
26+
# CIBW_SOME_OPTION: value
27+
# ...
28+
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
32+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)