Skip to content

Commit

Permalink
Switch sccache action to Mozilla-Actions version (shader-slang#5189)
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 authored Sep 30, 2024
1 parent ebee786 commit 59168f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 59168f4

Please sign in to comment.