Skip to content

Commit 168dad3

Browse files
committed
add cibuildwheel workflow
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent c796d33 commit 168dad3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
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, windows-latest, macos-13, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# Used to host cibuildwheel
17+
- uses: actions/setup-python@v5
18+
19+
- name: Install cibuildwheel
20+
run: python -m pip install cibuildwheel==2.21.3
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+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
31+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)