Skip to content

Commit c2c907f

Browse files
committed
fix
1 parent 08c72b0 commit c2c907f

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/hw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: |
8080
bash .github/scripts/tests_run.sh -c -type ${{ inputs.type }} -t ${{ inputs.chip }} -i 0 -m 1 -e
8181
82-
- name: Upload ${{ inputs.chip }}-${{ inputs.type }} results as cache
82+
- name: Upload ${{ inputs.chip }} ${{ inputs.type }} hardware results as cache
8383
uses: actions/cache/save@v4
8484
if: ${{ always() && steps.check-tests.outputs.enabled == 'true' }}
8585
with:

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ jobs:
9494
# uses: ./.github/workflows/qemu.yml@master
9595
# needs: [gen-matrix, call-build-tests]
9696
# strategy:
97+
# fail-fast: false
9798
# matrix:
9899
# type: ${{ fromJson(needs.gen-matrix.outputs.qemu-types) }}
99-
# chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2']
100+
# chip: ['esp32', 'esp32c3']
100101
# with:
101102
# type: ${{ matrix.type }}
102103
# chip: ${{ matrix.chip }}
@@ -114,6 +115,7 @@ jobs:
114115
with:
115116
script: |
116117
// Check if event is not a pull request or is a closed pull request
118+
console.log(`Event name: ${github.event_name}, action: ${github.event.action}`, sha: ${github.sha});
117119
if (github.event_name == 'pull_request_target' && github.event.action != 'closed') {
118120
console.log('Skipping cache cleanup');
119121
return;
@@ -125,9 +127,11 @@ jobs:
125127
console.log(`Deleting caches matching pattern: ${cacheKeysPattern}`);
126128
127129
// Fetch all cache entries for the repository
128-
const caches = await github.rest.actions.getActionsCacheList({
130+
const caches = await github.paginate(github.rest.actions.getActionsCacheList, {
129131
owner: context.repo.owner,
130132
repo: context.repo.repo,
133+
per_page: 100,
134+
key: cacheKeysPattern
131135
});
132136
133137
if (caches.data) {
@@ -149,6 +153,4 @@ jobs:
149153
*/
150154
console.log(`Deleted cache with key: ${cache.key}`);
151155
}
152-
153-
console.log(`Deleted ${matchingCaches.length} caches.`);
154156
}

.github/workflows/wokwi.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
with:
3838
lookup-only: true
3939
key: tests-wokwi-${{ env.id }}
40-
path: tests/**/*.xml
40+
path: |
41+
tests/**/*.xml
42+
tests/**/result_*.json
4143
4244
- name: Evaluate if tests should be run
4345
id: check-tests
@@ -93,9 +95,11 @@ jobs:
9395
run: |
9496
bash .github/scripts/tests_run.sh -c -type ${{ inputs.type }} -t ${{inputs.chip}} -i 0 -m 1 -W ${{env.WOKWI_TIMEOUT}}
9597
96-
- name: Upload ${{ inputs.chip }}-${{ inputs.type }} binaries as cache
97-
if: ${{ always() && steps.check-tests.outputs.enabled == 'true' }}
98+
- name: Upload ${{ inputs.chip }} ${{ inputs.type }} Wokwi results as cache
9899
uses: actions/cache/save@v4
100+
if: ${{ always() && steps.check-tests.outputs.enabled == 'true' }}
99101
with:
100-
key: ${{ env.id }}
101-
path: tests/**/*.xml
102+
key: tests-wokwi-${{ env.id }}
103+
path: |
104+
tests/**/*.xml
105+
tests/**/result_*.json

0 commit comments

Comments
 (0)