Skip to content

Commit d1b77df

Browse files
committed
python: Build python wrapper wheels with github actions
1 parent 48bbd3e commit d1b77df

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/wheels.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: wheels
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-linux:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.10'
17+
cache: 'pip'
18+
- run: pip install auditwheel patchelf
19+
- run: pip wheel . -w wheel
20+
- run: auditwheel repair --plat=manylinux_2_17_x86_64 wheel/*.whl
21+
22+
publish-linux:
23+
needs:
24+
- build-linux
25+
environment:
26+
name: pypi
27+
url: https://pypi.org/p/pylc3
28+
permissions:
29+
id-token: write
30+
steps:
31+
- uses: actions/download-artifact@v4
32+
with:
33+
name: python-package-distributions
34+
path: dist/
35+
- uses: pypa/gh-action-pypi-publish@release/v1
36+
37+
build-macos13:
38+
runs-on: macos-13
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-python@v5
42+
with:
43+
python-version: '3.10'
44+
cache: 'pip'
45+
- run: pip wheel . -w wheel
46+
47+
build-macos:
48+
runs-on: macos-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/setup-python@v5
52+
with:
53+
python-version: '3.10'
54+
cache: 'pip'
55+
- run: pip wheel . -w wheel
56+

0 commit comments

Comments
 (0)