Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .github/actions/setup-sccache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ runs:
run: |
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
# Write the cache only on main. Other refs read it, since their
# entries serve only that ref and evict the ones main shares.
if [ "$GITHUB_REF" != "refs/heads/main" ]; then
echo "SCCACHE_GHA_RW_MODE=READ_ONLY" >> "$GITHUB_ENV"
fi
Loading