aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-05 13:50:27 -0700
committerSelene ToyKeeper2023-11-05 13:50:27 -0700
commit6fe353f80cd0d308ec2d05e090082d4e35864d6d (patch)
treed5cd49f1aefbf7c3122fd2df54b1c99404644a0d /.github/workflows
parentfixed intentional error, because CI build-fail test worked correctly (diff)
downloadanduril-6fe353f80cd0d308ec2d05e090082d4e35864d6d.tar.gz
anduril-6fe353f80cd0d308ec2d05e090082d4e35864d6d.tar.bz2
anduril-6fe353f80cd0d308ec2d05e090082d4e35864d6d.zip
github actions: cache the Atmel DFP files between runs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/compile.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
index 78ca9cc..c6278d3 100644
--- a/.github/workflows/compile.yml
+++ b/.github/workflows/compile.yml
@@ -18,9 +18,20 @@ jobs:
- name: Requirements
run: |
sudo apt -qqy update
- sudo apt -qqy install avr-libc binutils-avr gcc-avr wget unzip
+ sudo apt -qqy install avr-libc binutils-avr gcc-avr unzip wget
- - name: Install Device Family Pack
+ - name: Cache Atmel DFPs
+ id: cache-dfp
+ uses: actions/cache@v3
+ env:
+ cache-name: cache-dfp-files
+ with:
+ path: arch/dfp
+ # new cache whenever the dfp-install script changes
+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('bin/dfp-install.sh') }}
+
+ - name: Install Atmel DFPs
+ if: steps.cache-dfp.outputs.cache-hit != 'true'
run: |
./make dfp