From 6fe353f80cd0d308ec2d05e090082d4e35864d6d Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 5 Nov 2023 13:50:27 -0700 Subject: github actions: cache the Atmel DFP files between runs --- .github/workflows/compile.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github/workflows/compile.yml') 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 -- cgit v1.2.3