diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-06-10 16:36:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-10 16:36:37 +0200 |
| commit | c53953b400ed0dbde410dc321c0a1f95c7090aa3 (patch) | |
| tree | 42907bc40b8ec8169b2cf53fe1b7f7087ed5f774 /.github/actions/cache | |
| parent | b6d2f49b4536f89cf2428d1f214468aa5fb21788 (diff) | |
| download | rneovim-c53953b400ed0dbde410dc321c0a1f95c7090aa3.tar.gz rneovim-c53953b400ed0dbde410dc321c0a1f95c7090aa3.tar.bz2 rneovim-c53953b400ed0dbde410dc321c0a1f95c7090aa3.zip | |
ci: add runner image version to cache key
This will ensure the cache isn't used when an image upgrade changes the
compiler version, causing the build to fail.
Diffstat (limited to '.github/actions/cache')
| -rw-r--r-- | .github/actions/cache/action.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml index 9ad14b8c27..e7ffdd66b6 100644 --- a/.github/actions/cache/action.yml +++ b/.github/actions/cache/action.yml @@ -10,6 +10,10 @@ runs: run: echo "CACHE_KEY=$CACHE_KEY-${{ join(matrix.*, '-') }}" >> $GITHUB_ENV shell: bash + - id: image + run: echo "version=$ImageVersion" >> $GITHUB_OUTPUT + shell: bash + # Avoid using '**/CMakeLists.txt' (or any pattern starting with '**/') even # if it makes the expression below simpler. hashFiles() has a timer that # will fail the job if it times out, which can happen if there are too many @@ -17,6 +21,6 @@ runs: - uses: actions/cache@v3 with: path: .deps - key: ${{ env.CACHE_KEY }}-${{ hashFiles('cmake**', + key: ${{ env.CACHE_KEY }}-${{ steps.image.outputs.version }}-${{ hashFiles('cmake**', '.github/workflows/test.yml', 'CMakeLists.txt', 'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }} |