Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/actions/setup-prebuild/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ runs:
shell: bash
run: sccache --start-server

# sccache does not cache Cargo's registry, build-script outputs, or linked dependency artifacts.
# Keep one cache key across CI jobs so each fresh VM can reuse those expensive inputs too.
# Only develop publishes caches; PRs restore them without racing to populate the same key.
- name: Restore Cargo dependency cache
if: github.repository == 'vortex-data/vortex' && inputs.enable-sccache == 'true'
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
shared-key: ci-dependencies
add-job-id-key: "false"
cache-bin: "false"
save-if: ${{ github.ref == 'refs/heads/develop' }}

# Fallback path: full setup for forks
- name: Full Rust setup
if: github.repository != 'vortex-data/vortex'
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ runs:
shell: bash
run: sccache --start-server

- name: Restore Cargo dependency cache
if: inputs.enable-sccache == 'true'
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
shared-key: ci-dependencies
add-job-id-key: "false"
cache-bin: "false"
save-if: ${{ github.ref == 'refs/heads/develop' }}

- name: Install Protoc (for lance-encoding build step)
if: runner.os != 'Windows'
uses: ./.github/actions/setup-protoc
Loading
Loading