Skip to content

Commit e53012b

Browse files
committed
Update FatFS Test
1. Update caching the download of the FatFS source archive to the pattern other tests are using to cache items. It looked like it was downloading the archive every time.
1 parent ea45034 commit e53012b

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/test-fatfs.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,27 @@ on:
99

1010
jobs:
1111
get-fatfs:
12+
name: Get FatFS
1213
runs-on: ubuntu-latest
14+
timeout-minutes: 4
1315
steps:
14-
- name: Set up cache key
15-
id: cache-key
16-
run: echo "CACHE_KEY=ff15a-cache" >> $GITHUB_ENV
16+
- name: Checking cache for FatFS
17+
uses: actions/cache@v4
18+
with:
19+
path: ./ff15a.zip
20+
key: fatfs-ff15a
21+
lookup-only: true
1722

18-
- name: Download FF15a.zip
23+
- name: Download FatFS
24+
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
1925
id: download
2026
run: |
2127
wget http://elm-chan.org/fsw/ff/arc/ff15a.zip -O ff15a.zip
2228
23-
- name: Cache the downloaded ZIP file
24-
uses: actions/cache@v4
25-
with:
26-
path: ./ff15a.zip
27-
key: ${{ env.CACHE_KEY }}
28-
restore-keys: |
29-
${{ env.CACHE_KEY }}
30-
3129
test-fatfs:
3230
needs: get-fatfs
3331
runs-on: ubuntu-latest
32+
timeout-minutes: 4
3433
steps:
3534
- name: Checkout code
3635
uses: actions/checkout@v3
@@ -39,7 +38,7 @@ jobs:
3938
uses: actions/cache@v4
4039
with:
4140
path: ./ff15a.zip
42-
key: ff15a-cache
41+
key: fatfs-ff15a
4342
fail-on-cache-miss: true
4443

4544
- name: Install dependencies

0 commit comments

Comments
 (0)