summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-01 00:58:30 +0800
committerGitHub <noreply@github.com>2024-09-30 09:58:30 -0700
commit59168f41f43d80650f3c02f5a840becead784ebc (patch)
tree867bb8aea1b652034c479128b507960da1402e73 /.github
parentebee7863cfb639d432d501df2901a840b63a9c72 (diff)
Switch sccache action to Mozilla-Actions version (#5189)
Diffstat (limited to '.github')
-rw-r--r--.github/actions/common-setup/action.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/actions/common-setup/action.yml b/.github/actions/common-setup/action.yml
index 736d0bafb..6abd67236 100644
--- a/.github/actions/common-setup/action.yml
+++ b/.github/actions/common-setup/action.yml
@@ -87,10 +87,7 @@ runs:
# Run this after building llvm, it's pointless to fill the caches with
# infrequent llvm build products
- name: Set up sccache
- uses: hendrikmuhs/ccache-action@v1.2
- with:
- key: ${{inputs.os}}-${{inputs.compiler}}-${{inputs.platform}}-${{inputs.config}}
- variant: sccache
+ uses: mozilla-actions/sccache-action@v0.0.6
# Opportunistically use sccache, it's not available for example on self
# hosted runners or ARM
continue-on-error: true
@@ -105,6 +102,7 @@ runs:
# Set CMake to use sccache if it's available
if command -v sccache; then
+ echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> "$GITHUB_ENV"
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> "$GITHUB_ENV"
fi