Skip to content

Refactor the custom OpenSSL build into a reusable action - #15384

Open
alex wants to merge 2 commits into
mainfrom
claude/openssl-ci-build-refactor-k3fc7e
Open

Refactor the custom OpenSSL build into a reusable action#15384
alex wants to merge 2 commits into
mainfrom
claude/openssl-ci-build-refactor-k3fc7e

Conversation

@alex

@alex alex commented Aug 2, 2026

Copy link
Copy Markdown
Member

The linux job's four OpenSSL steps (config hash, cache, build_openssl.sh, CFLAGS/RUSTFLAGS exports) move into a new .github/actions/build-openssl composite action. It takes type/version/config-flags and exposes the config hash as an output, which the rust/pip cache key now reads instead of the OPENSSL_HASH env var.

The cache also switches from actions/cache to explicit actions/cache/restore + actions/cache/save, with the save running immediately after the build instead of in a post-job step. A build now reaches the cache as soon as it finishes, so a failure or the 15-minute job timeout in a later step (nox install, tests) no longer means rebuilding OpenSSL on the next run.

Cache keys are unchanged, so existing entries are still hits — the hash computation produces the same digest as before (verified locally: openssl + 4.0.1 + no-legacy9d20c05…, same as the inline version).

One behavior change: the cache steps lose their timeout-minutes: 2, since composite-action steps don't support that key. The job's timeout-minutes: 15 still applies.


Generated by Claude Code

claude added 2 commits August 2, 2026 22:05
The linux job's OpenSSL steps (config hash, cache, build, CFLAGS/
RUSTFLAGS) move into .github/actions/build-openssl, which exposes the
config hash as an output for the rust/pip cache key.

The cache now uses actions/cache/restore plus an explicit
actions/cache/save immediately after the build, instead of relying on
actions/cache's post-job save. A build is written to the cache as soon
as it finishes, so a failure or timeout in a later step no longer means
rebuilding OpenSSL on the next run.

The cache keys are unchanged, so existing entries are still hits.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EoZRhEKeErJj1DA83MvxT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants