CI: consolidate Linux and native Apple Silicon offline validation #438
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!438
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/438/head"
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?
@pedrofort on GitHub · 2026-11-24 03:24 UTC · original
pedrofort:apple-silicon-ci→main· +2735 −18 · 27 files · 28 commits · closed without mergingObjective
Consolidate native cross-platform build and offline
shader validation for Windows, Linux and Apple Silicon.
Attribution and dependencies
Overlapping changes are not imported.
synthetic offline shader translation tests.
The dependency commits retain their original authors.
This PR is an integration candidate, not a replacement
claim for their independent contributions.
Local validation on Apple M5
Scope
Windows runtime behavior is not intentionally changed.
Linux and macOS support offline tools and tests.
Native title execution is not claimed.
Updated Linux and Windows hosted CI results are pending.
No game assets or proprietary binaries.
AI-assisted implementation with ChatGPT.
@SkippySteve on GitHub · 2026-11-24 03:28 UTC · original
I ran this on Linux x86_64 (Arch, Rust 1.98.1, Python 3.14) at
74cf6bc. The new script is not tied to macOS, so it also works as a Linux check.cargo xtask policycargo test --workspace --lockedcargo clippy --workspace --all-targets --locked --exclude victory-shader -- -D warningscargo build --workspace --release --lockedbash tests/offline-cli.sh target/release/victory.dxilhave valid structure (1248 and 2136 bytes),--validateand--pipelinesboth stop withneeds Windows (D3D12 / dxil.dll)Notes (none of them block):
maincontains all of #235 (17 files, +108/−10) as well as your commit. If this merges first, #235 lands with it. Either rebase after #235 merges, or say in the description that merging this also merges #235.TMPDIRpoints inside the checkout,victory-core'spolicy::tests::accepts_unrelated_directoriesfails by design: it refuses temp paths in the repo. Runners use a temp dir outside the checkout, so CI is not affected. This is only a warning for anyone who reproduces locally with a tmp dir in the worktree, which I first did.push:andpull_request:with no branch filter. The concurrency group isgithub.ref, which differs between the two events (refs/heads/…vsrefs/pull/N/merge). So a branch in this repo with an open PR runs the macOS job twice. Addingbranches: [main]underpushwould avoid that. macOS minutes cost more than Linux minutes.tests/offline-cli.shis mode 100644. That is fine because CI calls it withbash, butchmod +xwould let people runtests/offline-cli.sh <bin>directly.cargo test --workspaceplusbash tests/offline-cli.sh target/release/victorysteps could go into the Linux job (#232 is the interim Linux subset). That would give the offline translator x86-64 Linux coverage too. This can be a follow-up.I did not test on Windows, on macOS, or on a hosted runner. I used no game files: the script makes its own synthetic shaders.
@DaviTostes on GitHub · 2026-11-24 03:55 UTC · original
Verified
4e107ddon Arch Linux x86_64 (rustc 1.98.1) — this is the first PR I have seen that makes the workspace usable off Windows:cargo build --workspace: ok (debug, 30 s).cargo test --workspace --no-fail-fast: 162 passed, 0 failed, 3 ignored across the workspace. (Before this line of work,victory-gpuwas the blocker on Linux.)bash tests/offline-cli.sh target/debug/victory: OFFLINE CLI SMOKE TEST: PASS. The twoError: needs Windows (D3D12 / dxil.dll)lines are the expected off-Windows paths, not failures.git merge-tree --write-tree pr438 pr312clean).Not covered: the macOS/aarch64 target and the workflow itself (this machine is x86-64 Linux, no Apple runner), and title data (none here). Still, the
cfg(not(windows))path the Apple job depends on is exercised end to end.@pedrofort on GitHub · 2026-11-24 03:56 UTC · original
@SkippySteve @DaviTostes Thanks for the independent validation and detailed feedback!
I've addressed the workflow and script suggestions in commit
4e107dd, including duplicate CI triggers, temporary directory handling and executable permissions.All three smoke test scenarios passed on my Apple M5. It's great to see the updated commit also passing on Arch Linux with 162 tests and no failures.
I'll rebase once #235 lands to keep the diff focused and preserve proper attribution for SkippySteve's portability work.
I also agree on reusing the offline smoke test for Linux CI as a follow-up.
Really appreciate your contributions and testing!
@pedrofort on GitHub · 2026-11-24 20:34 UTC · original
Additional offline regression coverage validated on Apple M5
at
98e01ff90e15d80899d9d6117822b1d9df63cd41.three runs per worker count.
actual per-file parallel translation.
bitcode header checks.
logs retained on failure.
The previous consolidated candidate passed 271 workspace
tests, with 0 failures and 5 ignored. This follow-up changes
only tests and CI, not production Rust code.
Thanks to the portability contributors and previous
independent reviewers. Further Linux/macOS retesting
is welcome.
AI-assisted with ChatGPT. No game assets.
@Marvisak on GitHub · 2026-11-25 00:02 UTC · original
Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).
Re-packages #235 and adds macOS/Apple Silicon and Linux CI workflows with a 330-line shell test: a bundle, and CI for hosts the project does not target.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed