Skip to content

Commit

Permalink
Fix cache property name
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed Jan 5, 2025
1 parent 815c539 commit 8918ac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ jobs:
working-directory: /home/runner
run: |
curl -s -L "https://github.com/mozilla/sccache/releases/download/v${{ env.SCCACHE_VERSION }}/sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl.tar.gz" \
| tar xvz -C .
| tar xz -C .
chmod +x "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache"
sudo cp "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache" "/bin/sccache"
rm -rf "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl"
mkdir .sccache
echo "SCCACHE_DIR=$PWD/.sccache" >> $GITHUB_ENV
if [ "$RUNNER_DEBUG" = "1" ]; then
echo
echo "SCCACHE_RECACHE=true" >> $GITHUB_ENV
fi
- name: Install clang and libc++
if: matrix.compiler == 'clang'
run: |
Expand Down
4 changes: 2 additions & 2 deletions cmake/CCache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ else()
endif()
endif()

set_property(GLOBAL PROPERTY CMAKE_C_COMPILER_LAUNCHER "${CCACHE_COMMAND}")
set_property(GLOBAL PROPERTY CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_COMMAND}")
set_property(GLOBAL PROPERTY C_COMPILER_LAUNCHER "${CCACHE_COMMAND}")
set_property(GLOBAL PROPERTY CXX_COMPILER_LAUNCHER "${CCACHE_COMMAND}")

0 comments on commit 8918ac6

Please sign in to comment.