Skip to content

Commit cb8f597

Browse files
add github workflow to build a Python wheel package
Uses https://github.com/pypa/cibuildwheel
1 parent 06ca97e commit cb8f597

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Python Wheel
2+
3+
# For now, just trigger this workflow manually.
4+
on: [workflow_dispatch]
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-20.04, windows-latest, macos-latest]
13+
os: [ubuntu-20.04, windows-latest]
14+
15+
# We're using third party actions (not just the official GitHub-maintained actions),
16+
# so it's very important to minimise the ability for this workflow to do anything dangerous.
17+
# Grant it only read access to the repository content (which is public anyway); it shouldn't
18+
# need anything else.
19+
permissions:
20+
contents: read
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Build wheels
26+
uses: pypa/[email protected]
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)