mirror of https://github.com/OpenTTD/OpenTTD
Add: [Actions] Allow partial cache invalidation on dependencies change
parent
838fd61f29
commit
cd4c8ecbf3
|
@ -169,7 +169,9 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /usr/local/share/vcpkg/installed
|
path: /usr/local/share/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
|
- name: Prepare vcpkg
|
||||||
run: |
|
run: |
|
||||||
|
@ -249,7 +251,9 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vcpkg/installed
|
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
|
- name: Prepare vcpkg
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -496,7 +496,10 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /usr/local/share/vcpkg/installed
|
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
|
- name: Prepare vcpkg
|
||||||
run: |
|
run: |
|
||||||
|
@ -696,7 +699,9 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vcpkg/installed
|
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
|
- name: Prepare vcpkg
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue