From 3bf493e83cd9d5be127adce4a4bde9dd4be229f1 Mon Sep 17 00:00:00 2001 From: Andi Drebes Date: Wed, 10 Nov 2021 15:18:12 +0100 Subject: [PATCH] ci: Force use of ccache in conformance.yml Set the make variable `CCACHE` to `ON` in order to force the use of `ccache` during compilation of the code. For unknown reasons, the build directory must also be removed. Otherwise, a complete rebuild circumventing the cache is triggered and `ccache` does not have any effect on compilation time. Debug information printing `ccache` statistics before and after the build has also been added. --- .github/workflows/conformance.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index 0a7f42058..a6265b0d6 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -31,6 +31,11 @@ jobs: password: ${{ secrets.GHCR_PASSWORD }} options: -v ${{ github.workspace }}/compiler:/compiler run: | + echo "Debug: ccache statistics (prior to the build):" + ccache -s cd /compiler pip install pytest - make BUILD_DIR=/build test + rm -rf /build + make CCACHE=ON BUILD_DIR=/build test + echo "Debug: ccache statistics (after the build):" + ccache -s