File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-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 1414 description : Re-upload the cache to avoid automatic eviction
1515 default : false
1616 type : boolean
17+ strict-cache-strategy :
18+ description : Build from scratch if no matching cache is found
19+ default : false
20+ type : boolean
1721jobs :
1822 prepare :
1923 name : Prepare cache key hash
4852 arch : ${{ matrix.arch }}
4953 upload-artifacts : ${{ inputs.upload-artifacts }}
5054 reupload-cache : ${{ inputs.reupload-cache }}
55+ strict-cache-key-matching : ${{ inputs.strict-cache-strategy }}
5156 max-uncompressed-cache-size : 2G
5257
5358 fp-qt :
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-strategy : ${{ 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