From c8d1c263d665f3cf9fd9e034577f613ed593dd72 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 2 Jul 2022 18:31:17 +0300 Subject: [PATCH] CI: Use a custom ccache directory in GitHub CI This ensures that updates to ccache that change the default cache directory do not break out github ccache cache. --- .github/workflows/cmake.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 59eecdd60c..d96a41e606 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -7,6 +7,7 @@ env: # runner.workspace = /home/runner/work/serenity # github.workspace = /home/runner/work/serenity/serenity SERENITY_SOURCE_DIR: ${{ github.workspace }} + CCACHE_DIR: ${{ github.workspace }}/.ccache concurrency: group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} @@ -95,7 +96,7 @@ jobs: env: CACHE_SKIP_SAVE: ${{ github.event_name == 'pull_request' }} with: - path: /home/runner/.ccache + path: ${{ github.workspace }}/.ccache # If you're here because ccache broke (it never should), increment matrix.ccache-mark. # We want to always reuse the last cache, but upload a new one. # This is achieved by using the "prefix-timestamp" format,