@@ -96,11 +96,12 @@ jobs:
96
96
# call-qemu-tests:
97
97
# uses: ./.github/workflows/qemu.yml@master
98
98
# needs: [gen-matrix, call-build-tests]
99
- # strategy:
100
- # fail-fast: false
101
- # matrix:
102
- # type: ${{ fromJson(needs.gen-matrix.outputs.qemu-types) }}
103
- # chip: ['esp32', 'esp32c3']
99
+ # if: false
100
+ # strategy:
101
+ # fail-fast: false
102
+ # matrix:
103
+ # type: ${{ fromJson(needs.gen-matrix.outputs.qemu-types) }}
104
+ # chip: ['esp32', 'esp32c3']
104
105
# with:
105
106
# type: ${{ matrix.type }}
106
107
# chip: ${{ matrix.chip }}
@@ -129,6 +130,8 @@ jobs:
129
130
const sleep = ms => new Promise(r => setTimeout(r, ms));
130
131
const sha = '${{ github.event.pull_request.head.sha || github.sha }}';
131
132
const pr = '${{ github.event.pull_request.number }}';
133
+ const ref = '${{ github.event.pull_request.number || github.ref }}';
134
+ const regex = new RegExp("^tests-[\w]+-"+ref+"-", "m");
132
135
133
136
console.log(`PR: ${pr}, SHA: ${sha}`);
134
137
@@ -142,12 +145,12 @@ jobs:
142
145
}).then(caches => {
143
146
if (caches) {
144
147
for (const cache of caches) {
145
- if (cache.key.endsWith(sha) || (!pr && !cache.key.startsWith("tests-bin-"))) {
148
+ if (cache.key.endsWith(sha) || !regex.test(cache.key) || (!pr && !cache.key.startsWith("tests-bin-"))) {
146
149
console.log(`Skipping cache with key: ${cache.key}`);
147
150
continue;
148
151
}
149
152
150
- console.log(`Deleting cache with key : ${cache.key}`);
153
+ console.log(`Deleting cache: ${cache.key}`);
151
154
152
155
/*
153
156
github.rest.actions.deleteActionsCacheById({
0 commit comments