Skip to content

Commit cb6e041

Browse files
authored
ci: cache Python wheel compilation on prebuilt runners (#10727)
Signed-off-by: Robert Kruszewski <[email protected]>
1 parent 2f2dfce commit cb6e041

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎.github/workflows/publish-dry-runs.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ env:
2424
jobs:
2525
python-wheel-build:
2626
name: "Python (wheel build)"
27-
runs-on: ubuntu-latest
27+
runs-on: >-
28+
${{ github.repository == 'vortex-data/vortex'
29+
&& format('runs-on={0}/runner=amd64-ci-medium/image=ubuntu24-full-x64-pre-v2/extras=s3-cache/tag=python-wheel-build', github.run_id)
30+
|| 'ubuntu-latest' }}
2831
timeout-minutes: 30
2932
steps:
30-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
31-
- uses: ./.github/actions/setup-rust
33+
- parallel:
34+
- uses: runs-on/action@v2
35+
if: github.repository == 'vortex-data/vortex'
36+
with:
37+
sccache: s3
38+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
39+
- uses: ./.github/actions/setup-prebuild
3240
with:
33-
repo-token: ${{ secrets.GITHUB_TOKEN }}
41+
enable-sccache: ${{ github.repository == 'vortex-data/vortex' && 'true' || 'false' }}
3442
- name: Rust Dependency Cache
3543
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
3644
with:

0 commit comments

Comments
 (0)