[CONAN] stable fallback cache key

This commit is contained in:
Nicholas Dudfield
2025-03-25 20:17:53 +07:00
parent e9461c827c
commit 942227f8c3
2 changed files with 4 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ jobs:
path: ~/.ccache
key: ${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-${{ steps.safe-branch.outputs.name }}
restore-keys: |
${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-${{ steps.safe-branch.outputs.safe_branch_name }}-fallback
${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-
${{ runner.os }}-ccache-
@@ -170,7 +171,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ~/.ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}-${{ github.run_id }}
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}-fallback
- name: Test
run: |

View File

@@ -134,6 +134,7 @@ jobs:
path: ~/.ccache
key: ${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-${{ steps.safe-branch.outputs.safe_branch_name }}
restore-keys: |
${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-${{ steps.safe-branch.outputs.safe_branch_name }}-fallback
${{ runner.os }}-ccache-${{ env.CACHE_VERSION }}-
${{ runner.os }}-ccache-
@@ -167,7 +168,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ~/.ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}-${{ github.run_id }}
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}-fallback
- name: Set artifact name
id: set-artifact-name