ci: Automated GitHub Actions Build Workflow #2133

Open
7d4d9e33 wants to merge 6 commits from upstream-pr/2135 into main
7d4d9e33 commented 2026-11-25 05:49:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by 7d4d9e33 on 2026-11-25T05:49:00Z.


Summary

This PR adds a GitHub Actions workflow to automatically build the application whenever changes are pushed to the main branch, while also allowing builds to be triggered manually.

Changes

  • Added an automated build workflow triggered by pushes to main.
  • Added manual workflow triggering via workflow_dispatch.
  • Generates build artifacts that can be downloaded from GitHub Actions runs.

Why This Should Be Merged

This workflow could make the project more convenient to build and test, both for contributors and users who simply want to try the latest build without setting up the entire development environment.

  • Convenient access to builds: Users can download the generated artifacts without needing to build the application themselves.
  • Automated build process: Builds are automatically triggered when changes are pushed to main.
  • Manual builds when needed: Maintainers can trigger a build on demand.
  • Simplified testing: Makes it easier to obtain builds for testing and verification.
  • Build visibility: Build failures can be identified through GitHub Actions.

Testing

I've verified that the workflow runs and completes the build process without access to any game files and master executable binary, producing the expected artifact.

However, I haven't fully tested the generated binary's functionality yet. So far, my testing has only been basic, confirming that the build completes and that the artifact is generated. The binary itself still needs further functional testing.

Additional Context

#818

<!-- greyfinch-sync:Marvisak/VIctory:issue:5485950922 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2135). Originally posted by [7d4d9e33](https://github.com/7d4d9e33) on 2026-11-25T05:49:00Z. --- ## Summary This PR adds a GitHub Actions workflow to automatically build the application whenever changes are pushed to the `main` branch, while also allowing builds to be triggered manually. ## Changes - Added an automated build workflow triggered by pushes to `main`. - Added manual workflow triggering via `workflow_dispatch`. - Generates build artifacts that can be downloaded from GitHub Actions runs. ## Why This Should Be Merged This workflow could make the project more convenient to build and test, both for contributors and users who simply want to try the latest build without setting up the entire development environment. - **Convenient access to builds:** Users can download the generated artifacts without needing to build the application themselves. - **Automated build process:** Builds are automatically triggered when changes are pushed to `main`. - **Manual builds when needed:** Maintainers can trigger a build on demand. - **Simplified testing:** Makes it easier to obtain builds for testing and verification. - **Build visibility:** Build failures can be identified through GitHub Actions. ## Testing I've verified that the workflow runs and completes the build process without access to any game files and master executable binary, producing the expected artifact. However, I haven't fully tested the generated binary's functionality yet. So far, my testing has only been basic, confirming that the build completes and that the artifact is generated. The binary itself still needs further functional testing. ## Additional Context #818
DenRakEiw commented 2026-11-25 06:02:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T06:02:53Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64):

  • cargo xtask policy — ok (184 files ok)
  • Reviewed .github/workflows/build-windows.yml: clean least-privilege permissions: contents: read, explicit profile matrix with workflow_dispatch inputs. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6052604336 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2135#pullrequestreview-6052604336). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T06:02:53Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64): - `cargo xtask policy` — ok (`184 files ok`) - Reviewed `.github/workflows/build-windows.yml`: clean least-privilege `permissions: contents: read`, explicit profile matrix with `workflow_dispatch` inputs. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 06:33:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T06:33:01Z.

Review: COMMENTED


Static review only: docs/tools change — no crate code.

Suspicious PR: author 7d4d9e33 (random-looking account, not the swarm pattern) adds .github/workflows/build-windows.yml. CI workflows run with repo secrets — recommend the maintainer verify the account and audit the YAML (trigger scope, secret usage, artifact uploads) before considering merge. Not approving blindly.

<!-- greyfinch-sync:Marvisak/VIctory:review:6052888151 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2135#pullrequestreview-6052888151). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T06:33:01Z. **Review:** COMMENTED --- Static review only: docs/tools change — no crate code. **Suspicious PR**: author `7d4d9e33` (random-looking account, not the swarm pattern) adds `.github/workflows/build-windows.yml`. CI workflows run with repo secrets — recommend the maintainer verify the account and audit the YAML (trigger scope, secret usage, artifact uploads) before considering merge. Not approving blindly.
Marvisak commented 2026-11-25 11:05:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:50:14Z.


Automated triage for the maintainers.

Needs work: needs the maintainer's decision. Unchanged at 9a05fb9. This adds .github/workflows/build-windows.yml, which builds release, debug and diag binaries on pushes to main and uploads them as artifacts. The actions are pinned by SHA and the toolchain comes from rust-toolchain.toml. Whether the project publishes builds at all is the maintainer's decision (see #818). CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS still adds +crt-static and +avx2, so the published binaries differ from what ci.yml tests. +avx2 matches the README's CPU requirement, but +crt-static is untested. CI: passing.

On your question: diagnostics is a Cargo feature, not tied to a profile. It builds under the plain dev profile too, and ci.yml already runs clippy with --all-features on it. The README defines the development build as --profile diag --features diagnostics (Cargo.toml, [profile.diag]), and the debug artifact is mainly useful for stepping through code. My suggestion is to keep debug as it is, without the feature, so the three artifacts stay distinct, or to drop the debug artifact if the maintainer wants fewer. This is a suggestion; it does not change the verdict.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160238159 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2135#issuecomment-7160238159). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T10:50:14Z. --- <!-- victory-triage v1 head=9a05fb9e24d25dffdf2424d2f7644c4b93921c9d verdict=needs-work at=2026-11-25T16:45:09Z --> Automated triage for the maintainers. **Needs work: needs the maintainer's decision.** Unchanged at `9a05fb9`. This adds `.github/workflows/build-windows.yml`, which builds release, debug and diag binaries on pushes to `main` and uploads them as artifacts. The actions are pinned by SHA and the toolchain comes from `rust-toolchain.toml`. Whether the project publishes builds at all is the maintainer's decision (see #818). `CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS` still adds `+crt-static` and `+avx2`, so the published binaries differ from what `ci.yml` tests. `+avx2` matches the README's CPU requirement, but `+crt-static` is untested. CI: passing. On your question: `diagnostics` is a Cargo feature, not tied to a profile. It builds under the plain `dev` profile too, and `ci.yml` already runs clippy with `--all-features` on it. The README defines the development build as `--profile diag --features diagnostics` (`Cargo.toml`, `[profile.diag]`), and the debug artifact is mainly useful for stepping through code. My suggestion is to keep `debug` as it is, without the feature, so the three artifacts stay distinct, or to drop the debug artifact if the maintainer wants fewer. This is a suggestion; it does not change the verdict. --- _Generated by [Claude Code](https://claude.ai/code)_
7d4d9e33 commented 2026-11-25 13:02:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by 7d4d9e33 on 2026-11-25T12:35:49Z.


I have a question for debug build (not diagnostic build), should i add diagnostics for diag build parity, remove it, or keep it as-is? debug is one of vanilla Rust build profile, but i am not sure diagnostics feature is usable in this profile because it is undocumented.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162592219 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2135#issuecomment-7162592219). Originally posted by [7d4d9e33](https://github.com/7d4d9e33) on 2026-11-25T12:35:49Z. --- I have a question for `debug` build (not diagnostic build), should i add `diagnostics` for `diag` build parity, remove it, or keep it as-is? `debug` is one of vanilla Rust build profile, but i am not sure `diagnostics` feature is usable in this profile because it is undocumented.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2135:upstream-pr/2135'
git switch 'upstream-pr/2135'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2135'
git switch 'upstream-pr/2135'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2135'
git switch 'upstream-pr/2135'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2135'
git switch 'main'
git merge --squash 'upstream-pr/2135'
git switch 'main'
git merge --ff-only 'upstream-pr/2135'
git switch 'main'
git merge 'upstream-pr/2135'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2133
No description provided.