File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 77 workflow_dispatch :
88
99jobs :
10+ check-ci :
11+ name : Check CI Status
12+ runs-on : ubuntu-latest
13+ if : startsWith(github.ref, 'refs/tags/')
14+ outputs :
15+ ci-passed : ${{ steps.ci-status.outputs.result }}
16+ steps :
17+ - name : Check CI status
18+ id : ci-status
19+ uses : actions/github-script@v7
20+ with :
21+ script : |
22+ const { data: checkRuns } = await github.rest.checks.listForRef({
23+ owner: context.repo.owner,
24+ repo: context.repo.repo,
25+ ref: context.sha
26+ });
27+
28+ const ciRun = checkRuns.check_runs.find(run => run.name.includes('CI'));
29+
30+ if (!ciRun || ciRun.conclusion !== 'success') {
31+ core.setFailed('CI must pass before building wheels');
32+ return 'false';
33+ }
34+ return 'true';
35+
1036 build-wheels :
1137 name : Build wheels on ${{ matrix.os }}
1238 runs-on : ${{ matrix.os }}
39+ needs : check-ci
40+ if : needs.check-ci.outputs.ci-passed == 'true'
1341 strategy :
1442 matrix :
1543 include :
3462 args : --release --out dist --find-interpreter
3563 sccache : ' true'
3664 manylinux : auto
65+ working-directory : rapidgeo-py
3766
3867 - name : Upload wheels
3968 uses : actions/upload-artifact@v4
4473 build-sdist :
4574 name : Build source distribution
4675 runs-on : ubuntu-latest
76+ needs : check-ci
77+ if : needs.check-ci.outputs.ci-passed == 'true'
4778 steps :
4879 - uses : actions/checkout@v4
4980
5283 with :
5384 command : sdist
5485 args : --out dist
86+ working-directory : rapidgeo-py
5587
5688 - name : Upload sdist
5789 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments