ci(github): add AppImage and Windows exe build/release workflow #521
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!521
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-521"
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?
@Luxuride on GitHub · 2026-12-04 21:04 UTC · original
Luxuride:ci/build-appimage-release→main· +1174 −0 · 4 files · 12 commits · openWhat this does
Adds
.github/workflows/build.ymlto buildvictory.exeonwindows-latest, packageVIctory-x86_64.AppImageonubuntu-latest(with anAppRunwrapper using theWINEDLLOVERRIDESdefaults frombuild.sh), and publish both assets to a GitHub Release onv*tag pushes.Checks
VICTORY_*switch added or changed.github/workflows/build.ymlonly.github/workflows/build.ymlcargo xtask policypasses (asset policy: 358 files ok)Verified
cargo xtask policyonci/build-appimage-release→asset policy: 358 files okCost
None: CI workflow only, 128 lines in
.github/workflows/build.yml.ci: add AppImage and Windows exe build/release workflowto ci(github): add AppImage and Windows exe build/release workflow@Kal0s-design on GitHub · 2026-12-04 22:39 UTC · original
Ran the Windows job's build step locally on native Windows with MSVC, on the PR head
dddbc8c, with exactlycargo build --release --locked -p victory. The toolchain was 1.98.1 from rust-toolchain.toml, which is also what the barerustup toolchain installat build.yml:29 picks up. It finished cleanly in under 3 minutes with zero warnings, and --locked had no complaints about Cargo.lock. victory.exe came out at 13,388,288 bytes.victory.exe --versionprintsvictory 0.1.0and--helplists the subcommands with no game data or config present.One note on the description. The workflow has actually run by now. The pull_request run on this head went green for "Build victory.exe" and "Package AppImage", and "Create GitHub Release" was skipped as expected. That run checks out refs/pull/521/merge, i.e. the PR merged into current main, not
dddbc8citself. The one warning it shows (room_latelynever used, in victory-gpu) comes from main and not from this PR. On the PR's own base the function is still used and the build is warning free. So the release job is the only part nobody has exercised yet.The workflow side looks right to me. Artifact names match between upload and download (build.yml:36 with :51 and :114, :99 with :120), and the release file paths at :127-128 line up with where download-artifact drops them.
contents: writeis set only on the release job (:108-109) with read at the top level, and no secrets beyond the default token are used. Actions are pinned to major tags (@v5,@v4,@v2), not SHAs. appimagetool comes from the rollingcontinuousrelease with no checksum (:88-89), and what it produces is what gets published, so pinning a release and checking its hash would be safer. The build doesn't pass-C target-cpu=x86-64-v3the way build.sh:20 does. As far as I can see that only costs performance, since run.rs:63 checks for AVX2 at runtime.On whether the artifacts are usable. victory.exe on its own is fine as a binary. native-keys.default.txt is compiled in (keyboard_events.rs:1486), and cache and data default to LOCALAPPDATA or XDG_CACHE_HOME, not the exe folder (config.rs:134-140). But it isn't runnable without what setup.sh builds (vkd3d-proton, DXVK dxgi, d3dcompiler_47, Mesa and the patched Wine server, docs/BUILD.md:51-60). run.sh also only finds a downloaded exe if EXE= is set (run.sh:45-53), since it looks under target/x86_64-pc-windows-msvc.
The AppImage is the weaker part. AppRun only sets the override string (build.yml:62, same as build.sh:19 and run.sh:103) and then runs
wine victory.exe(:63). That forces native d3d12, d3d12core and dxgi, but the AppImage ships none of those DLLs. It uses whatever system wine and default prefix the user has, not the Proton or patched wineserver setup. And it sets none of what run.sh exports (VICTORY_GAME_DIR, VICTORY_CACHE_DIR, VICTORY_DATA_DIR, VICTORY_BVH_BUILDER and the rest at run.sh:81 and 107-108). So in practice it's a wine launcher for the CLI. Started from the desktop entry with no arguments, it only prints usage. I couldn't run it under Wine here, so that part comes from reading the files. It might be worth either shipping only the exe for now or saying clearly in the release notes that setup.sh is still required.README:239-240 asks that release archives contain no proprietary files. Shipping the exe built from source fits that.
AI-assisted: yes
@Luxuride on GitHub · 2026-12-05 15:40 UTC · original · edited 2026-12-05 15:50 UTC
Everything in your review is fixed, plus three things the first real runs turned up. Six commits on top of
dddbc8c:636c967— carry every dependency in the AppImage, not just victory.exedf2d2b9— build the dependencies once and publish the bundle1caae7f— give setup.sh the widl that jammy actually ships6d37767— keep the build off pull requests1473340— take the actions at their current major tags9bf9fd8— no README section: the launcher answers for itselfAgainst each of your notes:
"In practice it's a wine launcher for the CLI." It carries the tree
setup.shbuilds andAppRunisrun.shwith the paths pointed inside the mount: Wine 11.20 compiled from source withpatches/wine.patchapplied, Mesa 26.3.1'slibvulkan_radeon.so, vkd3d-proton'sd3d12/d3d12core, DXVK'sdxgi,d3dcompiler_47, and DXC'sdxcompiler.dll/dxil.dll. Preset, thenrun.conf, then the command line; everyVICTORY_*fromrun.sh:81and107-108; the ICD json rewritten at start because the mount point changes per run; its own Wine prefix, not the user's default; the DLLs installed into that prefix on first start behind a sha256 stamp. Two things are deliberately out: the game, which is asked for once and kept in~/.local/share/victory/run.conf(--game-dir/GAME=answer the rpf question thatrun.sh:45-53leaves toEXE=), and FSR 4'samdxcffx64.dll/amd_fidelityfx_upscaler_dx12.dll, which are AMD's and stay a drop-in in~/.local/share/victory/dlls."Started from the desktop entry with no arguments, it only prints usage." The default mode is
play."Either ship only the exe or say clearly that setup.sh is still required." Neither:
setup.shis not a precondition for the image, since it carries the tree. It asks for the game folder on first start and keeps its state under~/.local/share/victory, and the releases link both artifacts."appimagetool comes from the rolling continuous release with no checksum, and what it produces is what gets published." Pinned to 1.9.1, sha256 checked before it runs.
"The build doesn't pass -C target-cpu=x86-64-v3." It does now, on the Windows build too, so both artifacts are the same code. I looked at going the other way and a second v2 build would buy nothing:
run.rs:20-29refuses to start a title on a CPU without AVX2, and v3 is exactly AVX2 + BMI + FMA, so a v2 binary would boot and be turned away one line later. v3 also matchesbuild.sh:20, so CI and local builds stay identical."Actions are pinned to major tags, not SHAs." Kept at major tags, but each one verified to resolve and moved to the current major:
checkout@v7,upload-artifact@v7,download-artifact@v8,rust-cache@v2. The v4 pair you saw was also what produced the Node 20 deprecation annotation.appimagetool, which nobody maintains on our behalf, is the one thing that gets a hash instead of a tag."The release job is the only part nobody has exercised." Still true. It can only run from the fork side, so
gh workflow run build.yml -f ref=1473340onLuxuride/VIctory-xmembuilds and attaches the AppImage to the run, or push av*tag.Three things CI found that the reading could not:
widl. Jammy'smingw-w64-toolsinstallsx86_64-w64-mingw32-widl, not a plainwidl, so the job died in 34 seconds at the host check rather than after the Wine build.1caae7fadds the symlink.Permission deniedinstead of running them. They are 100755 now.patches/wine.patchpins a Wine version. It applies to 11.20 unchanged — offsets only — because 11.20 is the release that droppedclient_ptr_t ldt_copyfromstruct process; it does not apply to 11.5 or older (server/process.h:79,server/file.h:179). So the step checks first and fails with "rebase it on a newer Wine" instead of doing whatsetup.sh:198notes when the patch misses, which is run the system wineserver — the one thing the image must not do. Alsolibdrm2.4.133 andwayland-protocols1.49 are built in CI rather than taken from the host: Mesa 26.3.1 requires both and Jammy has 2.4.110 and 1.25, andlibdrm_amdgpuis a runtime dependency of RADV anyway. Nothing bundles glibc, so the job pinsubuntu-22.04(2.35) as the floor.The 35 minutes are paid once. A
depsjob publishes the built tree as a prerelease named after asha256ofsetup.sh,patches/wine.patch,build-deps.shandbuild.yml—deps-<12 hex>. A run that finds the tag downloads it (about 250 MiB, a minute) and verifies it against the.sha256beside it beforemkappdir.shunpacks it; otherwise it builds and publishes.rebuild-depson a dispatch forces the build.No runs on pull requests. A fork's PR run executes in your repository, where the token cannot publish that bundle, so every push here spent 35 minutes to upload an artifact nobody wanted.
main, tags andworkflow_dispatchremain; the run you are looking at is the last one. All the packaging steps up to the upload reproduce locally withpackaging/appimage/build-deps.shandpackaging/appimage/mkappdir.sh --exe <victory.exe>.Two things worth a decision.
dxcompiler.dllanddxil.dllcome from the DXC release, which permits redistributing them; ifREADME:239-240should rule those out too, say so and they come out ofbuild-deps.sh. And the bundle adds adeps-*entry to this repository's releases page — prerelease, titled as a dependency bundle, but visible.The dependency job got through Wine, then died configuring Mesa: ERROR: Problem encountered: glslang >= 12.2 is required. Mesa gates that on with_bvh (deps/mesa/meson.build:757), which is true whenever a Vulkan driver is enabled and cannot be switched off without dropping RADV's BVH. Jammy ships glslang 11.8, so build-deps.sh builds 16.7.0 with cmake, installs it under deps/glslang-inst and puts its bin ahead of any host copy, which also satisfies setup.sh's glslangValidator check. The tree goes into the bundle so it stays a complete build tree, and cmake replaces glslang-tools in the job's package list.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.