CI: Add GitHub Actions workflow #481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/481"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by LazyHatGuy on 2026-11-24T03:55:49Z.
To help with the influx of PRs I think it would be a good idea to have tests running in GitHub Actions
Ubuntu-Latest tests will fail until #112 or #235 are merged in.
Lint will fail without #502
A successful test run can be found here: https://github.com/LazyHatGuy/VIctory/actions/runs/45323833084
Imported from Marvisak/VIctory. Originally posted by NolanCotter on 2026-11-24T04:11:29Z.
Heads-up from a tooling pass: as written this will be red on
mainfor two independent reasons.cargo fmt --all -- --checkfails today: 30 files have drift (victory-formats, victory-gpu, victory-hle, victory-loader — e.g.crates/victory-loader/src/lib.rsuse ordering,threads.rsimport ordering). A maintainer-levelcargo fmtpass is needed before this lands, or every PR goes red behind it.cargo test --workspaceonubuntu-latestfails to build:victory-gpustill has Windows-only paths ungated (view_formatcalls#[cfg(windows)]-onlyhost_resource, E0425). Needs something in the shape of #235's gating first.cargo xtask policyin the linux job is fine — the policy path works gitless and on any platform.Imported from Marvisak/VIctory. Originally posted by LazyHatGuy on 2026-11-24T04:18:51Z.
Just opened a PR for the lint issue
If it is needed,
ubuntu-latestcan be removed from thetestmatrix until #235 is merged in.I'll wait for @Marvisak to reply to make a decission
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T08:55:45Z.
Review: COMMENTED
Read only, not built: a GitHub Actions workflow. It has
contents: read, timeouts, and third-party actions pinned to commit SHAs, which is good hygiene. It only runscargo fmt,cargo xtask policy,cargo clippyandcargo test. Nothing in it is unsafe.As the description says, it isn't green on
mainyet, and some of that won't fix itself:cargo fmt --all -- --checkfails onmaintoday (168 hunks in untouched files). The lint job would be red on every PR until someone lands a one-timecargo fmt --all, and that commit will conflict with most of the 400+ open PRs. It may be better to fmt-check only changed files at first.clippy -D warningsdepends on #502 and on whatever lands in the meantime.windows-latesttest job has no GPU. The GPU tests here skip or fall back to WARP (host()returns None, orVICTORY_D3D12_WARP), which is fine. But thevictory-shaderVALU GPU tests have hung when run in parallel (#433 serialises some of them), so a 30-minute timeout could trip on that rather than on a real failure.Worth having once main is formatted. Not merging into our fork, since there it would run Actions on every push.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T14:06:12Z.
Review: COMMENTED
Good instinct (fmt + policy + multi-OS), but two of the jobs cannot pass as written — both verified locally against current main (
ffe310e):cargo fmt --all -- --checkfails on main today: exit 1 with 182 diffs (e.g.crates/victory-formats/src/texture.rs:330). The fmt job would be red for this PR and every subsequent one until main is reformatted (or the job lands together with a reformat commit).ubuntu-latestmatrix leg cannot compile the workspace:cargo check -p victory-gpu --lockedfails on unix withE0425(the crate is Windows-only in practice —cfg(windows)deps, and the non-Windows paths don't build; same on macOS).cargo test --workspaceonubuntu-latesthits the same wall. The matrix needs to be Windows-only for the full workspace, or the unix leg scoped to the portable crates (victory-core,victory-pe,victory-loader,victory-formats,victory-shader,victory-pipeline,victory-game,xtask).Also note: main now has its own
.github/workflows/ci.yml(Windows-only, clippy x2 +cargo test --workspace), so this PR overlaps — worth deciding whether to extend that file (add fmt/policy steps, unix leg for portable crates) instead of adding a second workflow.Pull request closed