Test: build toolchain container image - #2
Closed
rkuester wants to merge 3 commits into
Closed
Conversation
rkuester
force-pushed
the
feat-build-image
branch
2 times, most recently
from
March 10, 2026 22:19
b5ffe0c to
ec9c3dc
Compare
Add a Podman-based build toolchain image (build.Containerfile) with pinned Rust compiler, rustfmt, clippy, and just. The base image is pinned by digest for reproducibility. The justfile gains two new recipes: - build-image: builds the toolchain image, skipping if unchanged - in-container: runs any just recipe inside the toolchain image The image is tagged with a content hash of the Containerfile so build-image can detect staleness without rebuilding. Named volumes cache the cargo registry and git checkouts across runs.
Run `just ci` on pushes to main and pull requests. The justfile's ci recipe delegates to `in-container "checks"`, keeping the workflow minimal and the justfile as the single source of truth for what CI does. The build toolchain image is cached as a tar archive via actions/cache, keyed on the Containerfile content hash. On cache hit, podman load restores the image and build-image skips the rebuild.
rkuester
force-pushed
the
feat-build-image
branch
from
March 11, 2026 00:33
ec9c3dc to
d4a88c2
Compare
Cache the target/ directory via actions/cache, keyed on the toolchain (Containerfile hash) and dependency lockfile. Project crate artifacts are pruned after each run so only compiled dependencies are stored. A restore-keys prefix allows partial cache hits when dependencies change.
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.
Test run of the build toolchain container and CI workflow.