Unverified Commit d8d8b53c authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Allow busting reserved Github action caches (#66638)

parent 6795597a
...@@ -66,7 +66,7 @@ jobs: ...@@ -66,7 +66,7 @@ jobs:
id: cache-build id: cache-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }}-${{ github.run_number }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
# Build binaries for publishing # Build binaries for publishing
build-native: build-native:
...@@ -432,7 +432,12 @@ jobs: ...@@ -432,7 +432,12 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }}-${{ github.run_number }} # Cache includes repo checkout which is required for later scripts
fail-on-cache-miss: true
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
restore-keys: |
${{ github.sha }}-${{ github.run_number }}
${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
...@@ -480,7 +485,12 @@ jobs: ...@@ -480,7 +485,12 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }}-${{ github.run_number }} # Cache includes repo checkout which is required for later scripts
fail-on-cache-miss: true
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
restore-keys: |
${{ github.sha }}-${{ github.run_number }}
${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment