This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.36 KB
/
Copy pathbuild-wheels.yml
File metadata and controls
59 lines (48 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build Wheels
on:
release:
types: [published]
workflow_dispatch: # Allow manual trigger
jobs:
build_wheels:
name: Build manylinux wheels with Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image with GCC trunk
run: |
docker compose -f docker/docker-compose.yml build build
env:
DOCKER_BUILDKIT: 1
- name: Build Python wheels in Docker
run: |
docker compose -f docker/docker-compose.yml run --rm wheel
- name: List built wheels
run: |
ls -lh dist/
echo "Built wheels:"
ls -1 dist/*.whl
- name: Upload wheels to release
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
upload_pypi:
name: Upload to PyPI
needs: [build_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write # Required for trusted publishing
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}