Skip to content

Commit 0f19a2c

Browse files
committed
Merge branch 'ci/remove_target'
2 parents e6775ad + 94b1865 commit 0f19a2c

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/tests_publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77
- completed
88

99
# No permissions by default
10-
permissions: {}
10+
permissions: { contents: read }
1111

1212
jobs:
1313
unit-test-results:
1414
name: Unit Test Results
15-
if: github.event.workflow_run.conclusion != 'skipped' || github.event.workflow_run.conclusion != 'cancelled'
15+
if: |
16+
github.event.workflow_run.conclusion == 'success' ||
17+
github.event.workflow_run.conclusion == 'failure' ||
18+
github.event.workflow_run.conclusion == 'timed_out'
1619
runs-on: ubuntu-latest
1720
permissions:
1821
actions: read

.github/workflows/wokwi.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- completed
88

99
# No permissions by default
10-
#permissions: {}
10+
permissions: { contents: read }
1111

1212
env:
1313
WOKWI_TIMEOUT: 600000 # Milliseconds
@@ -22,10 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
env:
2424
id: ${{ github.event.workflow_run.head_sha }}-${{ matrix.chip }}-${{ matrix.type }}
25-
# permissions:
26-
# contents: read
27-
# actions: read
28-
# statuses: write
25+
permissions:
26+
actions: read
27+
statuses: write
2928
strategy:
3029
fail-fast: false
3130
matrix:
@@ -116,12 +115,13 @@ jobs:
116115

117116
- name: Get binaries
118117
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
119-
uses: actions/download-artifact@v4
118+
uses: actions/cache/restore@v4
120119
with:
121-
run-id: ${{ github.event.workflow_run.id }}
122-
name: tests-bin-${{ matrix.chip }}-${{ matrix.type }}
120+
key: tests-${{ env.id }}-bin
123121
path: |
124-
~/.arduino/tests
122+
~/.arduino/tests/**/build*.tmp/*.bin
123+
~/.arduino/tests/**/build*.tmp/*.elf
124+
~/.arduino/tests/**/build*.tmp/*.json
125125
126126
- name: Run Tests
127127
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

0 commit comments

Comments
 (0)