Skip to content

Commit

Permalink
ci: Only cache Rust artifacts from main runs (#2412)
Browse files Browse the repository at this point in the history
To hopefully reduce cache pressure.
  • Loading branch information
larseggert authored Feb 3, 2025
1 parent 3d29b57 commit ed0a053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ runs:
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
with:
cache-bin: ${{ runner.environment == 'github-hosted' }}
save-if: ${{ github.ref == 'refs/heads/main' }} # Only cache runs from `main`

- name: Set up MSVC (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit ed0a053

Please sign in to comment.