File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3434 description : Size of the cache uncompressed
3535 type : string
3636 required : true
37+ strict-cache-key-matching :
38+ description : Only allow to restore a specific cache or build from scratch if no match
39+ default : false
40+ type : boolean
3741env :
3842 PROJECT_OPTIONS : target_arch ${{ inputs.arch }}
3943jobs :
6569 with :
6670 server-quota-high : ${{ inputs.max-uncompressed-cache-size }}
6771 key : ${{ inputs.cache-key-prefix }}${{ inputs.cache-key-hash }}
68- restore-keys : |
69- ${{ inputs.cache-key-prefix }}
72+ restore-keys : ${{ inputs.strict-cache-key-matching && null || inputs.cache-key-prefix }}
7073
7174 - name : Build ${{ inputs.element }}
7275 id : build
Original file line number Diff line number Diff line change 1717 uses : ./.github/workflows/build-project.yaml
1818 with :
1919 arches : ' ["x86_64", "aarch64"]'
20+ strict-cache-key-matching : ${{ github.ref == 'refs/heads/master' }}
2021 upload-artifacts : ${{ github.ref == 'refs/heads/master' }}
2122
2223 check-code :
You can’t perform that action at this time.
0 commit comments