fix: keep model compilation headless
ci / ci (pull_request) Successful in 3m8s

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-22 20:50:00 +02:00
co-authored by Claude
parent 4d38967078
commit 228f0b347e
3 changed files with 72 additions and 10 deletions
@@ -126,8 +126,9 @@ exactly as the reference does:
- Beamdog install dirs.
- `--nwn <install>` overrides (path to the install root or directly to the
binary).
- **Headless.** The engine is a GUI binary. If there is no `DISPLAY` and
`xvfb-run` is present, wrap the call:
- **Headless.** The engine is a GUI binary. Require `xvfb-run` and wrap the call
regardless of the caller's `DISPLAY` so compilation never opens the client
UI; fail before invoking the engine when `xvfb-run` is unavailable:
`xvfb-run -a --server-args=-screen 0 1024x768x24 nwmain-linux compilemodel <stem>`.
- **Per model (one at a time — the engine's `development/` and `modelcompiler/`
folders are flat and single-slot):**