Skip to content

Commit 955f7d3

Browse files
committed
ci: add wheel building pipeline
1 parent 9c1e51f commit 955f7d3

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build_wheels:
8+
name: Build wheels on ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
19+
- name: Install cibuildwheel
20+
run: python -m pip install cibuildwheel==2.22.0
21+
22+
- name: Build wheels
23+
run: python -m cibuildwheel --output-dir wheelhouse
24+
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
28+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)