Skip to content

Commit

Permalink
.github: build: also cache .ccache
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
troglobit committed Jul 17, 2021
1 parent dead82a commit 7275856
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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
Expand Down

0 comments on commit 7275856

Please sign in to comment.