|
71 | 71 | ./rdev.sh ci check-tag |
72 | 72 |
|
73 | 73 | # |
74 | | - # Build other wheels first (OS-specific, not python specific) |
| 74 | + # Build pure wheels first |
| 75 | + # |
| 76 | + |
| 77 | + build-pure: |
| 78 | + runs-on: ubuntu-latest |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + with: |
| 82 | + fetch-depth: 0 |
| 83 | + |
| 84 | + - name: Install python |
| 85 | + uses: actions/setup-python@v5 |
| 86 | + with: |
| 87 | + python-version: '3.13' |
| 88 | + |
| 89 | + - name: Install deps |
| 90 | + shell: bash |
| 91 | + run: | |
| 92 | + python -m pip --disable-pip-version-check install -r rdev_requirements.txt |
| 93 | +
|
| 94 | + - name: Build + test wheels |
| 95 | + shell: bash |
| 96 | + run: | |
| 97 | + ./rdev.sh ci build-pure-wheels |
| 98 | +
|
| 99 | + - uses: actions/upload-artifact@v4 |
| 100 | + with: |
| 101 | + name: "pypi-pure" |
| 102 | + path: dist |
| 103 | + |
| 104 | + # |
| 105 | + # Build other wheels next (OS-specific, not python specific) |
75 | 106 | # |
76 | 107 |
|
77 | 108 | build-other: |
@@ -120,7 +151,7 @@ jobs: |
120 | 151 |
|
121 | 152 | build-meson: |
122 | 153 | runs-on: ${{ matrix.os }} |
123 | | - needs: [setup_concurrency, build-other] |
| 154 | + needs: [setup_concurrency, build-other, build-pure] |
124 | 155 | strategy: |
125 | 156 | max-parallel: ${{ fromJSON(needs.setup_concurrency.outputs.max-parallel).v }} |
126 | 157 | fail-fast: true |
@@ -169,6 +200,12 @@ jobs: |
169 | 200 | path: dist-other |
170 | 201 | merge-multiple: true |
171 | 202 |
|
| 203 | + - uses: actions/download-artifact@v4 |
| 204 | + with: |
| 205 | + pattern: "pypi-pure" |
| 206 | + path: dist-other |
| 207 | + merge-multiple: true |
| 208 | + |
172 | 209 | # |
173 | 210 | # Platform specific setup |
174 | 211 | # |
@@ -215,6 +252,12 @@ jobs: |
215 | 252 | SCCACHE_WEBDAV_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }} |
216 | 253 | SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WPI_ARTIFACTORY_TOKEN }} |
217 | 254 |
|
| 255 | + # install + test pure wheels here because this covers all platforms and they need |
| 256 | + # the meson wheels to run |
| 257 | + - name: Install and test pure wheels |
| 258 | + run: | |
| 259 | + python -m devtools ci install-test-pure-wheels |
| 260 | +
|
218 | 261 | - name: Ensure all headers are accounted for |
219 | 262 | run: | |
220 | 263 | python -m devtools ci scan-headers |
@@ -394,6 +437,12 @@ jobs: |
394 | 437 | path: dist/ |
395 | 438 | merge-multiple: true |
396 | 439 |
|
| 440 | + - uses: actions/download-artifact@v4 |
| 441 | + with: |
| 442 | + pattern: pypi-pure |
| 443 | + path: dist/ |
| 444 | + merge-multiple: true |
| 445 | + |
397 | 446 | - name: Publish to PyPI |
398 | 447 | uses: pypa/gh-action-pypi-publish@release/v1 |
399 | 448 | with: |
|
0 commit comments