diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-01 00:58:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-30 09:58:30 -0700 |
| commit | 59168f41f43d80650f3c02f5a840becead784ebc (patch) | |
| tree | 867bb8aea1b652034c479128b507960da1402e73 /.github | |
| parent | ebee7863cfb639d432d501df2901a840b63a9c72 (diff) | |
Switch sccache action to Mozilla-Actions version (#5189)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/common-setup/action.yml | 6 |
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 |
