|
5 | 5 | types: [published] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build-x86_64: |
| 8 | + build: |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | container: |
11 | 11 | image: quay.io/pypa/manylinux_2_34_x86_64 |
@@ -36,63 +36,25 @@ jobs: |
36 | 36 | - name: Upload built wheels |
37 | 37 | uses: actions/upload-artifact@v4 |
38 | 38 | with: |
39 | | - name: built-wheels-x86_64 |
| 39 | + name: built-wheels |
40 | 40 | path: wheelhouse/*.whl |
41 | 41 | retention-days: 2 |
42 | 42 |
|
43 | | - build-aarch64: |
44 | | - runs-on: ubuntu-latest |
45 | | - container: |
46 | | - image: quay.io/pypa/manylinux_2_34_aarch64 |
47 | | - |
48 | | - env: |
49 | | - PYTHON: /opt/python/cp310-cp310/bin/python |
50 | 43 |
|
51 | | - steps: |
52 | | - - uses: actions/checkout@v2 |
53 | | - |
54 | | - - name: Install dependencies |
55 | | - run: | |
56 | | - $PYTHON -m pip install --upgrade pip |
57 | | - $PYTHON -m pip install -r requirements.txt |
58 | | - $PYTHON -m pip install -r requirements_dev.txt |
59 | | -
|
60 | | - - name: Build package (aarch64) |
61 | | - run: | |
62 | | - $PYTHON setup.py build_ext --inplace |
63 | | - $PYTHON -m build --no-isolation |
64 | | -
|
65 | | - - name: Repair wheels (aarch64) |
66 | | - run: | |
67 | | - $PYTHON -m pip install auditwheel |
68 | | - auditwheel repair dist/pointsnobal*.whl -w wheelhouse/ |
69 | | -
|
70 | | - - name: Upload aarch64 wheels |
71 | | - uses: actions/upload-artifact@v4 |
72 | | - with: |
73 | | - name: built-wheels-aarch64 |
74 | | - path: wheelhouse/*.whl |
75 | | - retention-days: 2 |
76 | 44 |
|
77 | 45 | # ✅ Step 2: Publish to PyPI (Outside the Container) |
78 | 46 | publish: |
79 | 47 | runs-on: ubuntu-latest |
80 | | - needs: [ build-x86_64, build-aarch64 ] # Wait for both builds |
| 48 | + needs: build # Ensures this runs after the build job |
81 | 49 | permissions: |
82 | 50 | # IMPORTANT: this permission is mandatory for Trusted Publishing |
83 | 51 | id-token: write |
84 | 52 | contents: read |
85 | 53 | steps: |
86 | | - - name: Download x86_64 wheels |
87 | | - uses: actions/download-artifact@v4 |
88 | | - with: |
89 | | - name: built-wheels-x86_64 |
90 | | - path: wheelhouse |
91 | | - |
92 | | - - name: Download aarch64 wheels |
| 54 | + - name: Download built wheels |
93 | 55 | uses: actions/download-artifact@v4 |
94 | 56 | with: |
95 | | - name: built-wheels-aarch64 |
| 57 | + name: built-wheels |
96 | 58 | path: wheelhouse |
97 | 59 |
|
98 | 60 | - name: Publish to PyPI |
|
0 commit comments