From 72758562aca56b26260f0c2b56d18c3f721e6395 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 17 Jul 2021 14:28:48 +0200 Subject: [PATCH] .github: build: also cache .ccache Missed from cut-n-paste from release builder, which wouldn't suffer from reusing a cached .ccache, but we've said for policy reasons should not. Signed-off-by: Joachim Wiberg --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5b85b7..0ba594a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,8 @@ jobs: export NETBOX_TUPLE=${{ matrix.profile }}-${{ matrix.platform }} echo ::set-output name=dir::netbox-${NETBOX_TUPLE} echo ::set-output name=tgz::netbox-${NETBOX_TUPLE}.tar.gz - - uses: actions/cache@v2 + - name: Cache dl/ + uses: actions/cache@v2 with: path: dl/ key: dl-${{ matrix.platform }}-${{ matrix.profile }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'configs/*', 'package/*/*.hash') }} @@ -34,6 +35,15 @@ jobs: dl-${{ matrix.platform }}-os- dl-${{ matrix.platform }}- dl- + - name: Cache .ccache + uses: actions/cache@v2 + with: + path: .buildroot-ccache/ + key: ccache-${{ matrix.board }}-os-${{ hashFiles('.git/modules/buildroot/HEAD', 'package/*/*.hash') }} + restore-keys: | + ccache-${{ matrix.board }}-os- + ccache-${{ matrix.board }}- + ccache--os- - name: Configure & Build run: | make netbox_${{ matrix.profile }}_${{ matrix.platform }}_defconfig