aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-05 13:50:27 -0700
committerSelene ToyKeeper2023-11-05 13:50:27 -0700
commit6fe353f80cd0d308ec2d05e090082d4e35864d6d (patch)
treed5cd49f1aefbf7c3122fd2df54b1c99404644a0d
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
-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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.