diff options
author | glx22 <glx@openttd.org> | 2021-03-01 19:35:39 +0100 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-03-01 22:41:48 +0100 |
commit | cd4c8ecbf341e141e35b28980cdc5c7a2c04b1ca (patch) | |
tree | e1f551a0a8a2034ec67ff3e9fd0911ad5dc1a700 /.github/workflows/release.yml | |
parent | 838fd61f299d4455e9a1fc5be883f4e9f9a40934 (diff) | |
download | openttd-cd4c8ecbf341e141e35b28980cdc5c7a2c04b1ca.tar.xz |
Add: [Actions] Allow partial cache invalidation on dependencies change
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c03ea6ea9..ae0e4e120 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -496,7 +496,10 @@ jobs: uses: actions/cache@v2 with: path: /usr/local/share/vcpkg/installed - key: ${{ steps.key.outputs.image }}-vcpkg-release + key: ${{ steps.key.outputs.image }}-vcpkg-release-0 # Increase the number whenever dependencies are modified + restore-keys: | + ${{ steps.key.outputs.image }}-vcpkg-release + ${{ steps.key.outputs.image }}-vcpkg-x64 - name: Prepare vcpkg run: | @@ -696,7 +699,9 @@ jobs: uses: actions/cache@v2 with: path: vcpkg/installed - key: ${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }} + key: ${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }}-0 # Increase the number whenever dependencies are modified + restore-keys: | + ${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }} - name: Prepare vcpkg shell: bash |