Skip to content

ci: Lint Windows and both macOS targets from Linux with soldr - #511

Merged
zackees merged 2 commits into
masterfrom
ci/472-cross-lint
Oct 13, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/472-cross-lint

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closes #472.

soldr cross-compiles from Linux to x86_64-pc-windows-msvc (xwin SDK), aarch64-apple-darwin and x86_64-apple-darwin (macOS SDK), so one Linux lane lints every shipped target. This is the zackees/ci.yml pattern, soldr's phase 2.

  • RED: ci/test_cross_lane.py requires the three targets, the rust/<target>/{clippy,dylint} gates, and a CI job running the lane.
  • GREEN:
    • a cross local-gate lane: soldr cargo clippy -D warnings and soldr cargo dylint --all, per target, for the workspace's lib and bin targets;
    • six gates in ci-attestations.yml mapped to a new rust-cross-lint Linux job with setup-soldr;
    • the job runs the lane on every PR push and is skipped only when the head is attested for those gates ([gate.trust] skip + covered-by = ["cross"]).
  • obs-c-oracle is excluded: it's a dev-only crate of C compiled for the host's tests, it never ships, and its C doesn't cross-compile to MSVC.

All three targets are clean today (about 27 s warm). The local gate passed and is stamped, now with cross:run.

A 'cross' local-gate lane runs Clippy (-D warnings) and the repo
Dylints for x86_64-pc-windows-msvc, aarch64-apple-darwin and
x86_64-apple-darwin, cross-compiled from Linux through soldr (xwin and
the macOS SDK). ci-attestations.yml declares rust/<target>/{clippy,dylint}
for each, and a Linux CI job, rust-cross-lint, runs the same lane on
every PR push unless the head is attested (zackees/ci.yml, soldr's phase
2). obs-c-oracle is excluded: a dev-only C crate built for the host.

Closes #472

Local-Gate: v1 tree=1021df54f6ec05dde06f6540ef467efd307d4537 secs=474 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791881023,"gate":"rust/all/fmt","host":"linux-x86_64","key":"02fbafe016c60bef74c831ebfa375bac0cd00a3afcb98e9aad22af0f1409ad71","lane":"lint","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":145,"stamp":"ad871866f47376606bb806c80f75b767","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"02fbafe016c60bef74c831ebfa375bac0cd00a3afcb98e9aad22af0f1409ad71","lane":"lint","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":145,"stamp":"d39ffbfe6ce0007382b89a3e785c4662","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"9a89dc07f997824d97b4fa03185a408532f47ab62dc71e15aef0e0b2185fdc74","lane":"rust-test","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":146,"stamp":"9b8856a941528894a0141d09c69ac2f7","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"c0a0b72402b78997abbe2065d960fba7","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"0aa306f1d2286a272a2e676bd849339d","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"8577cc3d6e9654426be7d16bbb03a442","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"79cd173b0751974804f71edee07675a5","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"d405fe7bf1968ddfabc9cec78801e23e","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"3b8d84dc80c4857cf80f34c1ce4642bfe44aa56fd9d07235f9ef583a40e08e15","lane":"cross","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":108,"stamp":"9efcb33d655525f8fb6ee390b31a9216","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
Ci-Attestation: {"at":1791881023,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"9b587f2234e33078d116133760cd57ee2cfca16c4805d45624cb986f0d9a7859","lane":"tier2-linux","parents":["ac2628fd3448f9d6da48d58e81c2650672a614b1"],"secs":75,"stamp":"5e88ac897474b37b9fac685c2ef8c2e0","tree":"1021df54f6ec05dde06f6540ef467efd307d4537","v":1,"via":"run"}
@zackees
zackees merged commit 024c20f into master Oct 13, 2026
21 checks passed
@zackees
zackees deleted the ci/472-cross-lint branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

CI improvement, linux + cross compilers / dyliny

1 participant