Skip to content

Commit

Permalink
Fix cache handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Aug 26, 2024
1 parent 4a74e4e commit c264fd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: Restore toolchain cache
uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
openwrt/build_dir
Expand All @@ -70,9 +71,10 @@ jobs:
key: ${{ env.GLUON_RELEASE }}-${{ matrix.target }}-build-deps-${{ env.CACHE_BUSTER }}

- name: Mark cache as fresh
if: steps.cache-restore.outputs.cache-hit
run: |
find openwrt/build_dir/{host*,toolchain-*} -name .built\* -exec touch {} \;
touch openwrt/staging_dir/{host*,toolchain-*}/stamp/.*
find openwrt/build_dir/{host*,toolchain-*} -name .built\* -exec touch {} \; || true
touch openwrt/staging_dir/{host*,toolchain-*}/stamp/.* || true
- name: Debug cache restore
run: |
Expand Down

0 comments on commit c264fd3

Please sign in to comment.