diff --git a/.crumb b/.crumb index eae728c..39a84e5 100644 --- a/.crumb +++ b/.crumb @@ -10,20 +10,20 @@ "children": [ { "digest": "6c3edd45335d6e8685867a47323f0d2ff58043782237b9e830d7732d7f3e36d7", - "last_commit": "e4efbd6", + "last_commit": "e32736e", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." } ], "children_root": "sha256:346c4f7cd4ea2f6e0acd661cc5d1e687ec1f7c00e7979bc4b8e97938250291d0", - "compiled_at": "2026-10-29T02:26:18Z", + "compiled_at": "2026-11-04T22:47:42Z", "compiler": "crumb-compile/1", - "digest": "sha256:181dc9fa801e6d0a878022fbc68ba17df0d857f145e6c202664aa53933bcfcf2", + "digest": "sha256:d33e60f055ff37e36d2d6cb2fb208b816196a8626f8067552657139b9829aaf8", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 10, - "generated_at_commit": "12f7f550cbef4d2d44d643745ebfa64aac9d4336", - "source_tree": "sha256:4e713726f2636a2023d8e71a8c3053155e40411cdeeec03c31bcc93afdb5598e" + "files": 11, + "generated_at_commit": "1076e157515d8eb3deb6e142b96b9de35541d0ec", + "source_tree": "sha256:2591e5eac7162577d12788d14728581c6cb97fdbbf085b335ee3eb97a9211433" }, "owner_lane": "", "seed": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d229417 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +# CI: build and run the unit tests with the committed Cargo.lock (--locked refuses any silent +# dependency drift) on a GitHub-hosted runner, with pinned actions and a read-only token. +# The tests need no systemd access; `pi-register check` against a live machine stays local. +name: CI +on: + pull_request: + push: + branches: [main] +permissions: + contents: read +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable + - name: Toolchain record + run: rustc --version && cargo --version + - name: Build + run: cargo build --locked --all-targets + - name: Test + run: cargo test --locked diff --git a/AGENTS.md b/AGENTS.md index 7c0e7fb..641c2f7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,7 @@ Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds - Applies to the whole repository: `src/main.rs` (the whole program, unit tests included), `register.toml`, `Cargo.toml`, `Cargo.lock`. - Keep `register.toml` generic. Real inventories belong in ignored `register.local.toml` or `/etc/pi-register/register.toml`, never tracked files. - `.crumb` is compiled crumb metadata. Do not edit it by hand. `.crumb.local` is local-only and ignored by git. -- There is no CI workflow in this repository. Local build and test results are the only checks. +- CI (`.github/workflows/ci.yml`) runs `cargo build --locked --all-targets` and `cargo test --locked` on every pull request and push to `main`. Checks against a live systemd machine stay local. ## Installation