From 59168f41f43d80650f3c02f5a840becead784ebc Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 1 Oct 2024 00:58:30 +0800 Subject: Switch sccache action to Mozilla-Actions version (#5189) --- .github/actions/common-setup/action.yml | 6 ++---- 1 file 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 -- cgit v1.2.3