Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/build-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ jobs:
key: dl-${{env.CACHE_DATE}}
restore-keys: dl-

- name: Refresh moving-ref package downloads
run: |
# Packages pinned to a moving ref (VERSION = HEAD / branch) download as
# <pkg>-<ref>.tar.gz — a constant filename. The dl cache key is the month
# (date +%m) and actions/cache only saves on a key miss, so that snapshot
# is frozen for weeks; buildroot then keeps reusing the stale tarball and
# silently ships an old version. This is what desynced majestic-webui from
# majestic (blanking every settings field label). Drop those archives so
# buildroot re-fetches the current ref each run. Content-addressed packages
# (S3 / semver / SHA pins) keep their cache.
find output/dl -type f \
\( -name '*-HEAD.tar.gz' -o -name '*-master.tar.gz' -o -name '*-main.tar.gz' \) \
-print -delete 2>/dev/null || true

- name: Build firmware
env:
BUILD_ID: ${{ needs.resolve.outputs.tag_name }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,20 @@ jobs:
key: dl-${{env.CACHE_DATE}}
restore-keys: dl-

- name: Refresh moving-ref package downloads
run: |
# Packages pinned to a moving ref (VERSION = HEAD / branch) download as
# <pkg>-<ref>.tar.gz — a constant filename. The dl cache key is the month
# (date +%m) and actions/cache only saves on a key miss, so that snapshot
# is frozen for weeks; buildroot then keeps reusing the stale tarball and
# the nightly silently ships an old version. This is what desynced
# majestic-webui from majestic (blanking every settings field label).
# Drop those archives so buildroot re-fetches the current ref each run.
# Content-addressed packages (S3 / semver / SHA pins) keep their cache.
find output/dl -type f \
\( -name '*-HEAD.tar.gz' -o -name '*-master.tar.gz' -o -name '*-main.tar.gz' \) \
-print -delete 2>/dev/null || true

- name: Build firmware
run: |
export GIT_HASH=$(git rev-parse --short ${GITHUB_SHA})
Expand Down
Loading