ci: align actions/cache consumers to v6 to match the LLVM cache producer#4996
Open
matthargett wants to merge 1 commit into
Open
ci: align actions/cache consumers to v6 to match the LLVM cache producer#4996matthargett wants to merge 1 commit into
matthargett wants to merge 1 commit into
Conversation
build_llvm_libraries.yml saves the prebuilt LLVM libraries cache with
actions/cache@v6, but three consumer workflows still restore it with
actions/cache@v5:
- compilation_on_android_ubuntu.yml
- compilation_on_macos.yml
- nightly_run.yml
A cache archive written by v6 is reported to a v5 consumer as a metadata
"hit" but then fails to restore ("Failed to restore" / "Cache not found
for input keys"), so the retrieve step trips the "can not get prebuilt
llvm libraries" guard and every LLVM-consuming leg on ubuntu-22.04 and
macOS fails. Consumers already on v6 (compilation_on_sgx,
spec_test_on_nuttx, compilation_on_windows, build_wamrc, ...) restore the
same archive without issue.
Bump the three lagging consumers to actions/cache@v6 so the producer and
all consumers use the same cache version. Fixes the ubuntu-22.04
build_iwasm / build_wamrc / build_regression_tests matrix on main, and
the recurring macOS LLVM-cache failures tracked in bytecodealliance#4830.
matthargett
requested review from
TianlongLiang,
lum1n0us and
yamt
as code owners
July 16, 2026 21:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On
main, the entireubuntu-22.04, linuxbuild matrix is red — everybuild_iwasmconfig plusbuild_wamrc (ubuntu-22.04)andbuild_regression_tests (ubuntu-22.04)— failing with:The macOS LLVM-cache jobs fail the same way (issue #4830).
Root cause
build_llvm_libraries.yml(the cache producer) saves the prebuilt-LLVM cache withactions/cache@v6, but three consumer workflows still restore it withactions/cache@v5:actions/cachebuild_llvm_libraries.yml(producer)compilation_on_android_ubuntu.ymlcompilation_on_macos.ymlnightly_run.ymlA cache archive written by v6 is reported to a v5 consumer as a metadata hit, then fails to restore:
…which trips the
can not get prebuilt llvm librariesguard, so every LLVM-consuming leg fails. The consumers already on v6 restore the same archive without issue — which is the evidence that v6-producer + v6-consumer is the working combination.Fix
Bump the three lagging consumers to
actions/cache@v6so the producer and all consumers share one cache version (17 one-line changes, no other behavior change).Fixes the ubuntu-22.04 build matrix on
mainand the recurring macOS LLVM-cache failures tracked in #4830.