qa: nuke caches on CI descriptor change

Adds a nonce field to manually nuke the cache

Changing the CI workflow descriptor can invalidate dependencies
and ccache caches by introducing different compilers or base OS,
but as GH Actions does not let us update an existing cache, this
would cause every subsequent CI run to rebuild everything until
a nuke is triggered.
This commit is contained in:
Patrick Lodder 2021-11-08 09:54:43 -05:00
parent 4a5e4856c7
commit cfe91b00b4
No known key found for this signature in database
GPG Key ID: 7C523F5FBABE80E7

View File

@ -21,6 +21,7 @@ jobs:
CCACHE_TEMPDIR: /tmp/.ccache-temp
CCACHE_COMPRESS: "1"
PYTHON_DEBUG: "1"
CACHE_NONCE: "1"
WINEDEBUG: fixme-all
SDK_URL: https://bitcoincore.org/depends-sources/sdks
@ -182,7 +183,7 @@ jobs:
cache-name: depends
with:
path: ./depends/built
key: ${{ matrix.name }}-${{ env.cache-name }}-${{ hashFiles('depends/packages/*') }}
key: ${{ matrix.name }}-${{ env.cache-name }}-${{ hashFiles('depends/packages/*', '.github/workflows/ci.yml') }}
- name: Build depends
run: |
@ -194,7 +195,7 @@ jobs:
cache-name: ccache
with:
path: ~/.ccache
key: ${{ matrix.name }}-${{ env.cache-name }}-${{ hashFiles('**/configure.ac') }}
key: ${{ matrix.name }}-${{ env.cache-name }}-${{ hashFiles('**/configure.ac', '.github/workflows/ci.yml') }}
- name: Build Dogecoin
run: |