From ac62982ee2a38e4816f65a58f5ad54b4dbd97cde Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 27 Aug 2024 13:21:23 -0400 Subject: [PATCH] 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. --- .github/workflows/lagom-template.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lagom-template.yml b/.github/workflows/lagom-template.yml index e2b79edd496..0919a517d55 100644 --- a/.github/workflows/lagom-template.yml +++ b/.github/workflows/lagom-template.yml @@ -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 }}