Skip to content

Commit

Permalink
Allow busting reserved Github action caches (#66638)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jul 2, 2024
1 parent 6795597 commit d8d8b53
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
id: cache-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt}}

# Build binaries for publishing
build-native:
Expand Down Expand Up @@ -432,7 +432,12 @@ jobs:
id: restore-build
with:
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
with:
Expand Down Expand Up @@ -480,7 +485,12 @@ jobs:
id: restore-build
with:
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
with:
Expand Down

0 comments on commit d8d8b53

Please sign in to comment.