Skip to content

Commit

Permalink
ci: get buildroot build cache working
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Mar 11, 2024
1 parent 2d157e6 commit 9b9ba51
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ jobs:
id: buildroot-cache
uses: actions/cache@v4
with:
path: output-buildroot.tar.gz
key: ${{ runner.os }}-br-${{ hashFiles('buildroot-ci.config', 'output-buildroot.tar.gz', 'root-key', 'root-key.pub') }}
path: |
output-buildroot
root-key
root-key.pub
key: ${{ runner.os }}-br-${{ hashFiles('buildroot-ci.config', 'buildroot/dl/**', 'output-buildroot/build/linux-custom/.config', 'output-buildroot/build/linux-custom/**/*.c', 'output-buildroot/build/linux-custom/**/*.h', 'root-key', 'root-key.pub') }}
restore-keys: |
key: ${{ runner.os }}-br-
Expand Down Expand Up @@ -208,15 +211,6 @@ jobs:
retention-days: 30
if-no-files-found: error

- name: Collect cache contents
timeout-minutes: 120
run: |
# tar up the remaining files including .ccache
echo "Collecting new cache contents: $(date)"
tar -czvf output-buildroot.tar.gz output-buildroot root-key root-key.pub || echo "error with tarball creation"
ls -hl output-buildroot.tar.gz || true
echo "Done collecting new cache contents: $(date)"
- name: Archive buildroot rootfs.cpio.gz
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 9b9ba51

Please sign in to comment.