Skip to content

Commit

Permalink
Make the FATFS a cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxJedi committed Mar 6, 2025
1 parent a37591f commit dfc0f72
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/test-fatfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,40 @@ on:
workflow_dispatch:

jobs:
get-fatfs:
runs-on: ubuntu-latest
steps:
- name: Set up cache key
id: cache-key
run: echo "CACHE_KEY=ff15a-cache" >> $GITHUB_ENV

- name: Download FF15a.zip
id: download
run: |
wget http://elm-chan.org/fsw/ff/arc/ff15a.zip -O ff15a.zip
- name: Cache the downloaded ZIP file
uses: actions/cache@v4
with:
path: ./ff15a.zip
key: ${{ env.CACHE_KEY }}
restore-keys: |
${{ env.CACHE_KEY }}
test-fatfs:
needs: get-fatfs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Checking cache for FATFS
uses: actions/cache@v4
with:
path: ./ff15a.zip
key: ff15a-cache
fail-on-cache-miss: true

- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -37,8 +65,7 @@ jobs:
- name: Compile FATFS library
run: |
cd ide/Linux-FATFS
wget http://elm-chan.org/fsw/ff/arc/ff15a.zip
unzip ff15a.zip
unzip ../../ff15a.zip
cp ffconf.h source/
make
Expand Down

0 comments on commit dfc0f72

Please sign in to comment.