CI: Explicitly set the ccache compiler check

This is needed to allow using clang plugins during PR workflows. They
currently are not included because they resulted in a clean build on
each run. With this, they should be cached.
This commit is contained in:
Timothy Flynn 2024-08-27 13:21:23 -04:00 committed by Tim Flynn
parent c5153cb398
commit ac62982ee2
Notes: github-actions[bot] 2024-08-27 23:25:40 +00:00

View file

@ -29,6 +29,12 @@ env:
VCPKG_ROOT: ${{ github.workspace }}/Toolchain/Tarballs/vcpkg
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
# Use the compiler version for the ccache compiler hash. Otherwise, if plugins are enabled, the plugin .so files
# are included in the hash. This results in clean builds on every run as the .so files are rebuilt.
#
# Note: This only works because our plugins do not transform any code. If that becomes untrue, we must revisit this.
CCACHE_COMPILERCHECK: "%compiler% -v"
jobs:
CI:
runs-on: ${{ inputs.os }}