ci(github): add AppImage and Windows exe build/release workflow #521

Open
github-bot wants to merge 12 commits from github-bot/gh-521 into main AGit
Owner

@⁠Luxuride on GitHub · 2026-12-04 21:04 UTC · original
Luxuride:ci/build-appimage-release → main · +1174 −0 · 4 files · 12 commits · open

What this does

Adds .github/workflows/build.yml to build victory.exe on windows-latest, package VIctory-x86_64.AppImage on ubuntu-latest (with an AppRun wrapper using the WINEDLLOVERRIDES defaults from build.sh), and publish both assets to a GitHub Release on v* tag pushes.

Checks

  • N/A: CI workflow only (no runtime behaviour change)
  • N/A: no VICTORY_* switch added or changed
  • No unrelated cleanup: adds .github/workflows/build.yml only
  • N/A: CI workflow only (no Rust code or testable runtime logic)
  • Checked the queue before opening: no open PR adds .github/workflows/build.yml
  • Nothing that only exists in your fork: cargo xtask policy passes (asset policy: 358 files ok)

Verified

  • cargo xtask policy on ci/build-appimage-release → asset policy: 358 files ok
  • Note: GitHub Actions workflow execution has not been run yet (pending CI trigger on PR/tag).

Cost

None: CI workflow only, 128 lines in .github/workflows/build.yml.

**@⁠Luxuride** on GitHub · 2026-12-04 21:04 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/521) `Luxuride:ci/build-appimage-release` → `main` · +1174 −0 · 4 files · 12 commits · open ## What this does Adds `.github/workflows/build.yml` to build `victory.exe` on `windows-latest`, package `VIctory-x86_64.AppImage` on `ubuntu-latest` (with an `AppRun` wrapper using the `WINEDLLOVERRIDES` defaults from `build.sh`), and publish both assets to a GitHub Release on `v*` tag pushes. ## Checks - N/A: CI workflow only (no runtime behaviour change) - N/A: no `VICTORY_*` switch added or changed - [x] No unrelated cleanup: adds `.github/workflows/build.yml` only - N/A: CI workflow only (no Rust code or testable runtime logic) - [x] Checked the queue before opening: no open PR adds `.github/workflows/build.yml` - [x] Nothing that only exists in your fork: `cargo xtask policy` passes (`asset policy: 358 files ok`) ## Verified - `cargo xtask policy` on `ci/build-appimage-release` → `asset policy: 358 files ok` - Note: GitHub Actions workflow execution has not been run yet (pending CI trigger on PR/tag). ## Cost None: CI workflow only, 128 lines in `.github/workflows/build.yml`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 21:05:19 +00:00
github-bot changed title from ci: add AppImage and Windows exe build/release workflow to ci(github): add AppImage and Windows exe build/release workflow 2026-12-04 21:10:31 +00:00
Author
Owner

@⁠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 exactly cargo build --release --locked -p victory. The toolchain was 1.98.1 from rust-toolchain.toml, which is also what the bare rustup toolchain install at 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 --version prints victory 0.1.0 and --help lists 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 dddbc8c itself. The one warning it shows (room_lately never 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: write is 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 rolling continuous release 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-v3 the 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

**@⁠Kal0s-design** on GitHub · 2026-12-04 22:39 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/521#issuecomment-7426182866) Ran the Windows job's build step locally on native Windows with MSVC, on the PR head dddbc8c, with exactly `cargo build --release --locked -p victory`. The toolchain was 1.98.1 from rust-toolchain.toml, which is also what the bare `rustup toolchain install` at 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 --version` prints `victory 0.1.0` and `--help` lists 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 dddbc8c itself. The one warning it shows (`room_lately` never 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: write` is 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 rolling `continuous` release 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-v3` the 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
The AppImage built on release was an AppRun that re-executed the host's
wine with victory.exe: no Wine of its own, no patched wineserver, no
RADV, no vkd3d-proton, no dxgi, and none of the VICTORY_* variables
run.sh sets. It could only ever run the CLI.

It now carries what setup.sh builds. packaging/appimage/build-deps.sh
builds libdrm 2.4.133 and wayland-protocols 1.49 first, both newer than
any distribution ships and both required by Mesa 26.3.1, then Mesa,
vkd3d-proton and the DLLs through setup.sh, and then Wine 11.20 from
source with patches/wine.patch applied. That patch applies to 11.20
unchanged, so the step fails loudly instead of falling back to the host's
wineserver the way setup.sh does when its patch does not apply.

packaging/appimage/AppRun.sh keeps run.sh's semantics: preset, then
run.conf, then the command line; every VICTORY_* path the title reads;
the icd json rewritten for the mount point the image is running from; the
DLLs installed into a prefix of the user's own; the game folder asked for
once and kept. It defaults to play, so the desktop entry starts the game
instead of printing usage, and it keeps run.sh's modes: play, shaders,
warm.

The build host sets the floor (ubuntu-22.04, glibc 2.35) because nothing
bundles glibc. mkappdir.sh assembles the AppDir from the built tree, and
the appimagetool it fetches is checked against a sha256 rather than the
unpinned continuous tag. The workflow gains a dependencies cache that a
pull request may read but not write, persists no credentials, pins its
actions by commit, and can be dispatched for any commit: the image's name
carries git describe, so an archive maps back to the commit that built
it. victory.exe now takes -C target-cpu=x86-64-v3 like build.sh, so both
artifacts are the same code.

Only the dependencies are packaged. The title still is not.
Thirty-five minutes of Wine and Mesa stood in front of every AppImage,
including a three-minute rebuild after a one-line launcher change, and a
cache miss put all of it back. The dependencies are now a job of their
own whose result is published under a tag named after its inputs:
deps-<sha256 of setup.sh + patches/wine.patch + build-deps.sh + this
workflow, first 12 hex>. A run that finds the tag downloads it (~250 MiB,
a minute) and the AppImage job never builds anything but the AppDir.

The tag cannot hold a bundle that was not built from those files, so
"pull the previous release" is only ever pulling the right one, and the
downloaded bundle is checked against the checksum beside it before it is
unpacked. Rebuilding is still possible: dispatch with rebuild-deps set,
or change one of the inputs. A pull request from a fork cannot publish,
so in that case the bundle is handed to the next job as an artifact.

build-deps.sh grows bundle/unbundle for this — the installed trees and
nothing else (no sources, no build directories, no venv), tarred with
fixed ownership and order so the same trees make the same archive. The
AppImage job's package list drops from forty lines to zstd.

The scripts are also committed executable now: they were 100644, which
would have failed the first workflow run with "Permission denied".
Ubuntu's mingw-w64-tools installs x86_64-w64-mingw32-widl, not a plain
widl (Debian's plain one comes from wine64-tools), so the host check in
setup.sh rejected the runner and the first AppImage run stopped before it
built anything.
A pull request from a fork runs in the upstream repository, where the
token cannot publish the dependency bundle, so every push spent its 35
minutes and then uploaded the result as an artifact nobody asked for.
The workflow now runs on main and on tags, and a branch is built by
dispatching it — which is also how an AppImage for an untagged commit is
made.

With that, the bundle tag is the only hand-off between the two jobs: the
dependencies job publishes it either by finding it already published or
by building it, and the AppImage job downloads it. The artifact fallback,
and the permission dance around it, are gone; the job holds contents:
write for its own tag.
The pinned commits were also behind: checkout v5 against v7, upload and
download-artifact v4 against v7 and v8 (the v4 pair is what still ran on
the deprecated Node 20 runtime). Major tags are what the publishers
maintain, and what the image is built from is this repository's code, so
the SHA pin buys little here and costs the runner-side fixes.

actions/cache is gone with the dependency bundle: the bundle's tag is the
cache now.
Author
Owner

@⁠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.exe
  • df2d2b9 — build the dependencies once and publish the bundle
  • 1caae7f — give setup.sh the widl that jammy actually ships
  • 6d37767 — keep the build off pull requests
  • 1473340 — take the actions at their current major tags
  • 9bf9fd8 — no README section: the launcher answers for itself

Against each of your notes:

"In practice it's a wine launcher for the CLI." It carries the tree setup.sh builds and AppRun is run.sh with the paths pointed inside the mount: Wine 11.20 compiled from source with patches/wine.patch applied, Mesa 26.3.1's libvulkan_radeon.so, vkd3d-proton's d3d12/d3d12core, DXVK's dxgi, d3dcompiler_47, and DXC's dxcompiler.dll/dxil.dll. Preset, then run.conf, then the command line; every VICTORY_* from run.sh:81 and 107-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 that run.sh:45-53 leaves to EXE=), and FSR 4's amdxcffx64.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.sh is 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-29 refuses 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 matches build.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=1473340 on Luxuride/VIctory-xmem builds and attaches the AppImage to the run, or push a v* tag.

Three things CI found that the reading could not:

  • widl. Jammy's mingw-w64-tools installs x86_64-w64-mingw32-widl, not a plain widl, so the job died in 34 seconds at the host check rather than after the Wine build. 1caae7f adds the symlink.
  • The scripts were committed 100644, so the job failed with Permission denied instead of running them. They are 100755 now.
  • patches/wine.patch pins a Wine version. It applies to 11.20 unchanged — offsets only — because 11.20 is the release that dropped client_ptr_t ldt_copy from struct 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 what setup.sh:198 notes when the patch misses, which is run the system wineserver — the one thing the image must not do. Also libdrm 2.4.133 and wayland-protocols 1.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, and libdrm_amdgpu is a runtime dependency of RADV anyway. Nothing bundles glibc, so the job pins ubuntu-22.04 (2.35) as the floor.

The 35 minutes are paid once. A deps job publishes the built tree as a prerelease named after a sha256 of setup.sh, patches/wine.patch, build-deps.sh and build.yml — deps-<12 hex>. A run that finds the tag downloads it (about 250 MiB, a minute) and verifies it against the .sha256 beside it before mkappdir.sh unpacks it; otherwise it builds and publishes. rebuild-deps on 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 and workflow_dispatch remain; the run you are looking at is the last one. All the packaging steps up to the upload reproduce locally with packaging/appimage/build-deps.sh and packaging/appimage/mkappdir.sh --exe <victory.exe>.

Two things worth a decision. dxcompiler.dll and dxil.dll come from the DXC release, which permits redistributing them; if README:239-240 should rule those out too, say so and they come out of build-deps.sh. And the bundle adds a deps-* entry to this repository's releases page — prerelease, titled as a dependency bundle, but visible.

**@⁠Luxuride** on GitHub · 2026-12-05 15:40 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/521#issuecomment-7440632400) · 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`](https://github.com/lobomfz/VIctory-xmem/commit/636c96770a5eee23c60d2fe5530d638f543468c6) — carry every dependency in the AppImage, not just victory.exe - [`df2d2b9`](https://github.com/lobomfz/VIctory-xmem/commit/df2d2b95fb6e472f9617534bac8ad0e13e29d21d) — build the dependencies once and publish the bundle - [`1caae7f`](https://github.com/lobomfz/VIctory-xmem/commit/1caae7ffd21e76ebc6a89f55216f13d7be5c27fc) — give setup.sh the widl that jammy actually ships - [`6d37767`](https://github.com/lobomfz/VIctory-xmem/commit/6d37767afd4c7e35e8e654c49e30a6386e73d8f6) — keep the build off pull requests - [`1473340`](https://github.com/lobomfz/VIctory-xmem/commit/1473340524add5068bad93312cf000f6ffc73441) — take the actions at their current major tags - [`9bf9fd8`](https://github.com/lobomfz/VIctory-xmem/commit/9bf9fd8b4632f8a1fbe305027c808e0426794c69) — no README section: the launcher answers for itself Against each of your notes: **"In practice it's a wine launcher for the CLI."** It carries the tree `setup.sh` builds and `AppRun` is `run.sh` with the paths pointed inside the mount: Wine 11.20 compiled from source with `patches/wine.patch` applied, Mesa 26.3.1's `libvulkan_radeon.so`, vkd3d-proton's `d3d12`/`d3d12core`, DXVK's `dxgi`, `d3dcompiler_47`, and DXC's `dxcompiler.dll`/`dxil.dll`. Preset, then `run.conf`, then the command line; every `VICTORY_*` from `run.sh:81` and `107-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 that `run.sh:45-53` leaves to `EXE=`), and FSR 4's `amdxcffx64.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.sh` is 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-29` refuses 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 matches `build.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=1473340` on `Luxuride/VIctory-xmem` builds and attaches the AppImage to the run, or push a `v*` tag. Three things CI found that the reading could not: - **`widl`.** Jammy's `mingw-w64-tools` installs `x86_64-w64-mingw32-widl`, not a plain `widl`, so the job died in 34 seconds at the host check rather than after the Wine build. `1caae7f` adds the symlink. - **The scripts were committed 100644**, so the job failed with `Permission denied` instead of running them. They are 100755 now. - **`patches/wine.patch` pins a Wine version.** It applies to 11.20 unchanged — offsets only — because 11.20 is the release that dropped `client_ptr_t ldt_copy` from `struct 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 what `setup.sh:198` notes when the patch misses, which is run the system wineserver — the one thing the image must not do. Also `libdrm` 2.4.133 and `wayland-protocols` 1.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, and `libdrm_amdgpu` is a runtime dependency of RADV anyway. Nothing bundles glibc, so the job pins `ubuntu-22.04` (2.35) as the floor. **The 35 minutes are paid once.** A `deps` job publishes the built tree as a prerelease named after a `sha256` of `setup.sh`, `patches/wine.patch`, `build-deps.sh` and `build.yml` — `deps-<12 hex>`. A run that finds the tag downloads it (about 250 MiB, a minute) and verifies it against the `.sha256` beside it before `mkappdir.sh` unpacks it; otherwise it builds and publishes. `rebuild-deps` on 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 and `workflow_dispatch` remain; the run you are looking at is the last one. All the packaging steps up to the upload reproduce locally with `packaging/appimage/build-deps.sh` and `packaging/appimage/mkappdir.sh --exe <victory.exe>`. Two things worth a decision. `dxcompiler.dll` and `dxil.dll` come from the DXC release, which permits redistributing them; if `README:239-240` should rule those out too, say so and they come out of `build-deps.sh`. And the bundle adds a `deps-*` entry to this repository's releases page — prerelease, titled as a dependency bundle, but visible.
The section had grown to twice the length of the build it describes. Keeps
what the image carries, the three commands, where its state lives, the FSR 4
drop-in and the glibc floor; the packaging layout and the dependency reuse are
one paragraph instead of three.
The image is built and released by the workflow; its launcher answers for
itself, and the README is about running the emulator from a checkout.
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.
vkd3d-proton links -lpathcch for the PathCchCombineEx and
PathCchRemoveFileSpec calls in libs/vkd3d-common/platform.c, and
meson.build:108 finds it with the cross compiler. mingw-w64 8.0.0, the
version jammy ships, has pathcch.h but no import library, so the step
died at configure with "C shared or static library 'pathcch' not
found"; bookworm's and trixie's mingw-w64 ship both halves.

The library only maps the apiset api-ms-win-core-path-l1-1-0, which
Wine and Windows 8+ export, and mingw-w64 generates it from the .def
pinned here, so dlltool builds the same one on the runner instead of
taking a newer distro's binary. It has to land in the toolchain's own
lib directory: meson finds libraries with the compiler, a cross driver
ignores LIBRARY_PATH, and the cross file is vkd3d's own and names the
compiler by bare name.

The step does nothing where the toolchain already has the library, so
Fedora, Arch and the devcontainer are unaffected.

Also say in the dispatch input that a commit means a full SHA:
actions/checkout rejects an abbreviation, which is how the first
attempt at this run failed in 20 seconds.
The import library got vkd3d's configure past find_library, and the
build then stopped a step later in platform.c:302:

  error: 'PATHCCH_NONE' undeclared (first use in this function)

mingw-w64 8.0.0's pathcch.h has only PATHCCH_ALLOW_LONG_PATHS; the
options enum, including the zero flag vkd3d passes to
PathCchCombineEx, arrived later. So the header comes from the same
pinned mingw-w64 files as the .def, and both are installed together.

The step now probes by compiling and linking PathCchCombineEx with
PATHCCH_NONE, so it covers both halves and still does nothing on a
toolchain that already has them, and it repeats the probe after
installing so a half-install fails here rather than inside vkd3d.
`dlls` is a build-deps.sh step name, not a tree: setup.sh's step_dlls
leaves dxgi.dll and d3dcompiler_47.dll at the root of deps/ and
dxcompiler.dll and dxil.dll under deps/dxc. So the bundle carried
neither, and the AppImage job got as far as mkappdir.sh and stopped at

  mkappdir: no .../deps/dxgi.dll

after a dependency job that succeeded and published.

The list now names what mkappdir.sh actually reads: the two DLLs
beside dxc, libdrm-inst, mesa-inst, wine-inst and vkd3d/build/libs.
The glslang and wayland-protocols trees are dropped, since only the
build that makes the bundle needs them and the comment above the list
always said the bundle carries what mkappdir reads. The bundler now
checks every entry rather than two, so an incomplete bundle fails
where it is made instead of in the next job.

Tested the chain a bundle is for: bundle in one tree, unbundle into an
empty deps/, then mkappdir.sh against it, which now reports every
section and a 63M AppDir.
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/521/head:github-bot/gh-521'
git switch 'github-bot/gh-521'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-521'
git switch 'github-bot/gh-521'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-521'
git switch 'github-bot/gh-521'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-521'
git switch 'main'
git merge --squash 'github-bot/gh-521'
git switch 'main'
git merge --ff-only 'github-bot/gh-521'
git switch 'main'
git merge 'github-bot/gh-521'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.