ci: Automated GitHub Actions Build Workflow #2135

Open
github-bot wants to merge 5 commits from github-bot/gh-2135 into main AGit
Owner

@⁠7d4d9e33 on GitHub · 2026-11-25 05:49 UTC · original
7d4d9e33:build-artifacts → main · +89 −0 · 1 files · 5 commits · open

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

**@⁠7d4d9e33** on GitHub · 2026-11-25 05:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/2135) `7d4d9e33:build-artifacts` → `main` · +89 −0 · 1 files · 5 commits · open ## 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
Currently, this workflow automatically build 3 variants: release, diag (per README), and debug. It's built with static linking to reduce runtime dependencies within user environments and target AVX2. Rationales for targetting AVX2 are requirement in README and known to produce better performance in some scenarios.
Unless we meet with cache-related errors again, we should remove this and gain benefit from caching
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:55:45 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:50 UTC · original · edited 2026-11-25 16:47 UTC

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

**@⁠Marvisak** on GitHub · 2026-11-25 10:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/2135#issuecomment-7160238159) · edited 2026-11-25 16:47 UTC <!-- 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)_
Author
Owner

@⁠7d4d9e33 on GitHub · 2026-11-25 12:35 UTC · original

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.

**@⁠7d4d9e33** on GitHub · 2026-11-25 12:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2135#issuecomment-7162592219) 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 can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2135/head:github-bot/gh-2135'
git switch 'github-bot/gh-2135'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2135'
git switch 'github-bot/gh-2135'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2135'
git switch 'github-bot/gh-2135'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2135'
git switch 'main'
git merge --squash 'github-bot/gh-2135'
git switch 'main'
git merge --ff-only 'github-bot/gh-2135'
git switch 'main'
git merge 'github-bot/gh-2135'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2135
No description provided.