Skip to content

CI builds what ships - #160

Merged
RikusVanRensburg merged 2 commits into
mainfrom
ci/RVR/ci-builds-what-ships
Nov 12, 2026
Merged

RikusVanRensburg merged 2 commits into
mainfrom
ci/RVR/ci-builds-what-ships

Conversation

@RikusVanRensburg

Copy link
Copy Markdown
Contributor

Closes #152

What changed

  • Fixed the stale Dockerfile path (koppel\Dockerfile to installer\docker\Dockerfile) in installer/linux/build.ps1 (twice), installer/notices/new-notices.ps1 and docs/windows.md.
  • ci.yml: new Release build job (pnpm --filter koppel.ui build, then cargo build --release --locked -p koppel), new Linux packages and image job (the Dockerfile linux-packages target, a dpkg-deb --info check of the three .deb files, then the image for amd64, arm64 and arm/v6 without pushing; this also builds the three musl targets, so there is no separate cargo-zigbuild job), new Pins job. timeout-minutes on every job. Every action pinned by commit SHA with the version in a comment (SHAs looked up with gh api).
  • advisories.yml: weekly (Monday) and manual: cargo deny check advisories, pnpm audit --prod, and a check for a newer Skakel tag that opens one issue.
  • src/rust-toolchain.toml (channel 1.99.1, clippy, rustfmt) read by CI instead of the RUST_VERSION env; src/ui/.nvmrc (24.22.2) read by setup-node.
  • .github/scripts/check-pins.sh: Rust version (toolchain file, Dockerfile base tag, rust-version, rust: tags in docs), Node (.nvmrc against the Dockerfile), pnpm (packageManager against the Dockerfile), and deny.toml allow against about.toml accepted.
  • [workspace.lints.rust] unsafe_code = "forbid", taken by koppel and koppel-contract ([lints] workspace = true). Neither has unsafe code.
  • docs/building.md describes all of it.

Left out, and why

  • The lint is not on koppel-config, koppel-usb, koppel-web and koppel-windows: each has unsafe blocks (15 files), and narrowing them is source work other agents are doing. Scoped down, not dropped.
  • The new jobs are not in the ruleset's required checks (.github/rulesets/main-pull-requests.json); the owner decides after they have run green a few times.
  • rust-toolchain.toml has no targets: on a dev machine rustup would install three musl targets nobody uses locally, and the Dockerfile adds them itself.
  • engines.node >=20 in src/ui/package.json is unchanged (UI agents own it).
  • The contract tests job is a separate issue.

Testing

  • cargo fmt --all --check: pass. .github/scripts/check-pins.sh: pass, and fails as expected with a changed .nvmrc and a licence removed from about.toml.
  • cargo clippy -p koppel -p koppel-contract --all-targets --locked -- -D warnings natively (see CI for the result).
  • The workflows themselves run on this PR; not run locally: the Docker build, cargo test (nothing in code changed beyond the two [lints] tables).
  • Docs changed: docs/building.md, docs/windows.md.

Changelog notes: no wire, on-disk or settings change. Build: rustup now reads src/rust-toolchain.toml and installs Rust 1.99.1 (minimal profile with clippy and rustfmt) on first cargo run from src/.

🤖 Generated with Claude Code

RikusVanRensburg and others added 2 commits November 12, 2026 21:06
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…weekly advisories

Adds a release build job with the UI built, a job for the Dockerfile's linux-packages
target and the image, timeout-minutes on every job, actions pinned by SHA, a weekly
advisories workflow, rust-toolchain.toml, .nvmrc, a Pins check (versions and the licence
lists) and workspace lints that forbid unsafe_code in koppel and koppel-contract.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@RikusVanRensburg
RikusVanRensburg merged commit fa068cb into main Nov 12, 2026
7 checks passed
@RikusVanRensburg
RikusVanRensburg deleted the ci/RVR/ci-builds-what-ships branch November 12, 2026 19:23
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.

CI builds what ships: release binary, UI, packages and image

1 participant