Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sccache to build-test.yml #418

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
8 changes: 8 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,14 @@ jobs:
run: |
git config --global core.autocrlf false

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Set sccache env vars
run: |
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"

according to: https://github.com/mozilla/sccache/blob/main/docs/GHA.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/mozilla-actions/sccache-action#conditionally-run-cache-and-enable-it says true which is where I copied it from. I haven't actually merged any PR using this though so we don't have any in-house precedence.

echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- uses: actions/checkout@v3
with:
fetch-depth: 1
Expand Down
Loading