Skip to content

Commit b565adb

Browse files
committed
0.1.1 -- fix paths in wheels
1 parent d9ca1cf commit b565adb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,37 @@ on:
77
workflow_dispatch:
88

99
jobs:
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:
@@ -34,6 +62,7 @@ jobs:
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
@@ -44,6 +73,8 @@ jobs:
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

@@ -52,6 +83,7 @@ jobs:
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

0 commit comments

Comments
 (0)