mirror of
https://github.com/boostorg/boost-ci.git
synced 2026-02-09 11:02:14 +00:00
Fix ccache saving on cache hit
When a cache with the key exists it is NOT saved even when changed. Hence make the key unique to a commit (SHA) and restore the most recent cache with a key prefixed by the part without the SHA.
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -137,7 +137,8 @@ jobs:
|
||||
if: env.B2_USE_CCACHE
|
||||
with:
|
||||
path: ~/.ccache
|
||||
key: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}
|
||||
key: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}-${{github.sha}}
|
||||
restore-keys: ${{matrix.os}}-${{matrix.container}}-${{matrix.compiler}}-
|
||||
|
||||
- name: Fetch Boost.CI
|
||||
uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user