Skip to content

Test: initial CI - #3

Closed
rkuester wants to merge 4 commits into
mainfrom
feat-initial-ci
Closed

Test: initial CI#3
rkuester wants to merge 4 commits into
mainfrom
feat-initial-ci

Conversation

@rkuester

Copy link
Copy Markdown
Owner

Test run for CI workflow with container build and dependency caching.

@rkuester
rkuester force-pushed the feat-initial-ci branch 4 times, most recently from 13fdeb2 to e56d328 Compare March 11, 2026 14:44
Separate from the CI commit so reverting CI doesn't accidentally
unignore .cache/, which may also be used by other tooling.
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. This is
necessary because podman save/load (used for CI caching) doesn't
preserve layer cache metadata, so podman build would rebuild from
scratch even with a loaded image. The content-hash tag lets
`podman image exists` skip the build entirely.

Downloaded crates are cached in .cache/ via bind mounts so they
persist between container runs and are accessible to CI caching.
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 and cargo caches (compiled dependencies
and downloaded crates) are cached between runs via actions/cache.
Project crate artifacts are pruned before the target cache saves so
only dependency objects are stored.
Update prerequisites to list just and optionally Podman. Replace
the raw cargo commands in "Making Changes" with `just checks`, and
add a "Reproducing CI locally" section explaining `just ci`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant