.github: update cache key

This commit is contained in:
Pierre Kancir 2023-02-07 17:59:51 +01:00 committed by Peter Barker
parent 066410715b
commit 9879d6651e
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ jobs:
# Put ccache into github cache for faster build
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: bash
run: |
NOW=$(date -u +"%F-%T")
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT

View File

@ -57,7 +57,7 @@ jobs:
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
restore-keys: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
- name: setup ccache
run: |
. .github/workflows/ccache.env