Repository navigation
Build: compile and test the workspace on Linux again - #523
spidercraft wants to merge 1 commit into
Conversation
Since the world bring-up, main no longer builds on Linux: victory-gpu names host_resource outside its cfg(windows), and victory-hle reaches Windows-only modules (xmem, files, lifecycle, the text entry dialog). This gates those uses only, as the smallest base for a native Linux runtime: - view_format and the D3D12 allocator hookup are Windows-only, like what they call. - XLaunchNewGame ends the title only on Windows; the text entry dialog answers "dismissed" elsewhere. - translate --validate / --pipelines refuse to start off Windows (no host DXIL validator or D3D12 there); translation itself runs. - Tests that parse the test binary as a PE image, or use Windows title paths, are ignored off Windows with the reason. Tested: Linux (CachyOS, rustc 1.98.1): cargo test --workspace passes (162 passed, 13 ignored). cargo check --target x86_64-pc-windows-msvc --all-targets gives the same diagnostics as before (none). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Check on Linux, not Windows: pass. Head
On: AMD Ryzen 7 5700, 62 GB RAM, Artix Linux 7.3.4-artix1-2, rustc 1.98.1 (the repo's pinned toolchain), cargo-xwin 0.24.1. No game data. Automated check only: the code itself was not reviewed. |
catminou4
left a comment
There was a problem hiding this comment.
Verified on macOS 26 arm64, rustc 1.98.1, head 0012266, full macOS-buildable suite with --locked --no-fail-fast:
- victory-core 8, victory-formats 20 (+3 ignored), victory-loader 3 (+4 ignored), victory-pe 3 (+3 ignored), victory-shader 56, victory-pipeline 4, victory-game 2, xtask 4 — 0 failed
- The ignored tests are exactly the PE-own-binary ones this PR gates off non-Windows (they fail on main).
cargo check --workspace --all-targets is also clean on this head (modulo one pre-existing dead-code warning in victory-shader's lib test, fixed in #685).
I can't verify the Linux CI claims themselves (no Linux/docker here), but the portability fixes compile and test green on macOS too. Approving.
|
Verified this PR's patch from
All checks ran with networking disabled. No game data was used. The Windows cross-check initially hit a read-only sandbox error because BLAKE3's compiler emits a temporary assembly file beside its source; it passed after giving that dependency a disposable writable copy, without changing the PR. Not checked: native Windows execution, native Linux gameplay, or shader translation with real input. This validates Linux build/test portability and the CLI guards, not runtime support. AI-assisted testing with Codex. |
|
Tested on Linux (Arch, pinned 1.98.1), your head 0012266 merged on ffe310e: But host
#1017 passes that same clippy plus the tests and the Windows-target clippy (both feature sets) as of today, so this one looks superseded; worth comparing before either merges. Not tested: Windows, the game. |
|
One more Wine-specific point, measured tonight on Linux (GE-Proton11-6 Wine, vkd3d-proton from Proton Experimental, GTX 1660): Under Wine the indirect argument clamp never compiles, so every indirect execution is dropped. and the frame-rate lines then report
With the native compiler the indirect draws run: the world frame time goes from about 1.3-4.6 s to 7-14 s here, and I get 16 warnings So for Linux users today: install the native |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
Keep both the fork's typed-float NaN test and the upstream branch-join regression. Gate the Windows-only view_format helper so the GPU crate can be tested off Windows; the same one-line gate is part of Marvisak#523 and Marvisak#1241. Validated Linux formats, GPU, PE, and shader unit tests and Windows MSVC workspace test compilation (with a disposable Linux builder workaround).
|
Tested this on macOS (
|
|
I pushed a rebased branch with those two |
|
I rebased this onto |
What
mainno longer builds on Linux (E0425host_resourceinvictory-gpu, then Windows-only modules reached fromvictory-hle). This gates only those uses, so the workspace builds and its tests run on Linux again:view_formatand the D3D12 allocator hookup are Windows-only, like what they call.XLaunchNewGameends the title only on Windows; the text entry dialog answers "dismissed" elsewhere.translate --validate/--pipelinesrefuse to start off Windows (no host validator or D3D12 there); translation itself runs.No reformatting, no behaviour change on Windows. #112 covers the same ground plus setup and CI, but it conflicts with
maintoday and reformats the workspace; this is the minimal fix, and the base of the native Linux runtime PRs that follow.Tested
cargo test --workspacepasses, 162 passed, 13 ignored.cargo check --workspace --all-targets --target x86_64-pc-windows-msvc: same diagnostics as before (none).cargo xtask policyok. No game data used.🤖 Generated with Claude Code