Skip to content

Commit 6c20c90

Browse files
committed
ci(tests): Swap cache to artifacts to avoid errors between OSes
1 parent 575a415 commit 6c20c90

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

.github/workflows/hw.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,16 @@ jobs:
7777
run: |
7878
pip install -U pip
7979
pip install -r tests/requirements.txt --extra-index-url https://dl.espressif.com/pypi
80+
apt update
81+
apt install -y jq
8082
8183
- name: Get binaries
82-
id: cache-build-binaries
83-
uses: actions/cache/restore@v4
8484
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
85+
uses: actions/download-artifact@v4
8586
with:
86-
fail-on-cache-miss: true
87-
key: tests-${{ env.id }}-bin
87+
name: tests-bin-${{ inputs.chip }}-${{ inputs.type }}
8888
path: |
89-
~/.arduino/tests/**/build*.tmp/*.bin
90-
~/.arduino/tests/**/build*.tmp/*.elf
91-
~/.arduino/tests/**/build*.tmp/*.json
89+
~/.arduino/tests
9290
9391
- name: Run Tests
9492
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

.github/workflows/qemu.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,11 @@ jobs:
113113
114114
- name: Get binaries
115115
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
116-
id: cache-build-binaries
117-
uses: actions/cache/restore@v4
116+
uses: actions/download-artifact@v4
118117
with:
119-
fail-on-cache-miss: true
120-
key: tests-${{ env.id }}-bin
118+
name: tests-bin-${{ inputs.chip }}-${{ inputs.type }}
121119
path: |
122-
~/.arduino/tests/**/build*.tmp/*.bin
123-
~/.arduino/tests/**/build*.tmp/*.elf
124-
~/.arduino/tests/**/build*.tmp/*.json
120+
~/.arduino/tests
125121
126122
- name: Run Tests
127123
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

.github/workflows/wokwi.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,11 @@ jobs:
9191

9292
- name: Get binaries
9393
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
94-
id: cache-build-binaries
95-
uses: actions/cache/restore@v4
94+
uses: actions/download-artifact@v4
9695
with:
97-
fail-on-cache-miss: true
98-
key: tests-${{ env.id }}-bin
96+
name: tests-bin-${{ inputs.chip }}-${{ inputs.type }}
9997
path: |
100-
~/.arduino/tests/**/build*.tmp/*.bin
101-
~/.arduino/tests/**/build*.tmp/*.elf
102-
~/.arduino/tests/**/build*.tmp/*.json
98+
~/.arduino/tests
10399
104100
- name: Run Tests
105101
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

0 commit comments

Comments
 (0)