mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
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.
This commit is contained in:
parent
1ebc5af2f0
commit
c8d1c263d6
1 changed files with 2 additions and 1 deletions
3
.github/workflows/cmake.yml
vendored
3
.github/workflows/cmake.yml
vendored
|
@ -7,6 +7,7 @@ env:
|
||||||
# runner.workspace = /home/runner/work/serenity
|
# runner.workspace = /home/runner/work/serenity
|
||||||
# github.workspace = /home/runner/work/serenity/serenity
|
# github.workspace = /home/runner/work/serenity/serenity
|
||||||
SERENITY_SOURCE_DIR: ${{ github.workspace }}
|
SERENITY_SOURCE_DIR: ${{ github.workspace }}
|
||||||
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
|
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
|
||||||
|
@ -95,7 +96,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CACHE_SKIP_SAVE: ${{ github.event_name == 'pull_request' }}
|
CACHE_SKIP_SAVE: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.ccache
|
path: ${{ github.workspace }}/.ccache
|
||||||
# If you're here because ccache broke (it never should), increment matrix.ccache-mark.
|
# 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.
|
# We want to always reuse the last cache, but upload a new one.
|
||||||
# This is achieved by using the "prefix-timestamp" format,
|
# This is achieved by using the "prefix-timestamp" format,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue