Add cache built OpenSSL/wolfSSL deps in PR builders to speedup builds in CI#412
Open
aidangarske wants to merge 1 commit into
Open
Add cache built OpenSSL/wolfSSL deps in PR builders to speedup builds in CI#412aidangarske wants to merge 1 commit into
aidangarske wants to merge 1 commit into
Conversation
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.
Description
Adds a reusable composite action
.github/actions/cache-build-depsthat cachesthe built
openssl-install/wolfssl-install(andopenssl-sourceforpatched builds) keyed by resolved commit SHA, so
build-wolfprovider.shskipsthe OpenSSL/wolfSSL configure+make on a cache hit. Wired into the normal-PR
from-source builders:
cmdline,simple,smoke-test,seed-src,fips-ready.Pattern mirrors the existing
multi-compiler.ymlcache (resolve-ref -> SHA ->actions/cache): a stable tag resolves to a fixed SHA (cached across runs);masterresolves to current HEAD (rebuilt only when upstream moves). The unitunder test (
wolfprov-install) is never cached.Measured effect (verified on this PR: cold run 1 -> warm run 2)
Per heavy config the from-scratch dep build is ~5:30-5:50; on a warm cache the
build step drops to ~30-50 s (about 5 min saved per cached job). All builders
passed on both the cold and warm runs.
Validation
masterrows hit on the resolved HEAD SHA("Cache hit ... Cache restored successfully"): master is reused when the commit
is unchanged and rebuilds when it moves; stable tags hit unconditionally.
simple.yml) also cacheopenssl-sourceso the source-reading mismatch checks pass on a hit.
replace-default/seed-src/fips) so no wrong-config cache hit.
wgetonly runs on a cache miss.