CI: build the Linux runtime with Clang, build rpf9dump on Linux, run Build.sh (follow-up to #227) #679

Open
github-bot wants to merge 1 commit from github-bot/gh-679 into main AGit
Owner

@⁠bhimio1 on GitHub · 2026-11-24 11:47 UTC · original
bhimio1:feat/linux-ci → main · +91 −3 · 3 files · 1 commits · open

Follow-up to #227. That PR's CI changes could not be pushed with it (workflow files need a token scope), so they come here on their own.

What this adds

  • runtime.yml / linux-clang: the native Linux runtime build with Clang instead of the runner's default GCC, running ctest (CPU and llvmpipe tests). It checks that CMake really picked Clang. linux-gpu-tools keeps the GPU shader tests on GCC.
  • ci.yml / rpf9dump-linux: builds the asset exporter on Linux (the check job builds it on Windows only) and runs the synthetic TTPF export-retry test and the diagnostics project. tests/test_rpf9dump_exit_codes.py stays in check: two of its cases fail on Linux, because the directory they put at <file>.partial no longer blocks Util.WriteAtomic's unique temp name. That is an existing test/implementation mismatch, not changed here.
  • ci.yml / stdlib-tests-linux: a ./Build.sh --help step, matching make_game.py --help on Windows.
  • docs/linux.md: the "how it is checked" column now names these jobs.

Action versions are pinned to the same commits the existing jobs use. Rebased on current main; no Windows or macOS job is touched.

What is and isn't verified

  • Both workflow files parse as valid YAML and contain the new jobs.
  • The steps are the commands that were run by hand on Ubuntu (Clang build + ctest 72/72, rpf9dump build, Build.sh help). They have not run on GitHub-hosted runners yet. The first CI run on this PR is the real test; I'll fix anything it shows.
  • The linux-clang job's sccache / Vulkan-header cache steps are copied from the existing linux-gpu-tools job.
**@⁠bhimio1** on GitHub · 2026-11-24 11:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/679) `bhimio1:feat/linux-ci` → `main` · +91 −3 · 3 files · 1 commits · open Follow-up to #227. That PR's CI changes could not be pushed with it (workflow files need a token scope), so they come here on their own. ## What this adds - **`runtime.yml` / `linux-clang`**: the native Linux runtime build with Clang instead of the runner's default GCC, running `ctest` (CPU and llvmpipe tests). It checks that CMake really picked Clang. `linux-gpu-tools` keeps the GPU shader tests on GCC. - **`ci.yml` / `rpf9dump-linux`**: builds the asset exporter on Linux (the `check` job builds it on Windows only) and runs the synthetic TTPF export-retry test and the diagnostics project. `tests/test_rpf9dump_exit_codes.py` stays in `check`: two of its cases fail on Linux, because the directory they put at `<file>.partial` no longer blocks `Util.WriteAtomic`'s unique temp name. That is an existing test/implementation mismatch, not changed here. - **`ci.yml` / `stdlib-tests-linux`**: a `./Build.sh --help` step, matching `make_game.py --help` on Windows. - `docs/linux.md`: the "how it is checked" column now names these jobs. Action versions are pinned to the same commits the existing jobs use. Rebased on current `main`; no Windows or macOS job is touched. ## What is and isn't verified - Both workflow files parse as valid YAML and contain the new jobs. - The steps are the commands that were run by hand on Ubuntu (Clang build + `ctest` 72/72, `rpf9dump` build, Build.sh help). They have **not** run on GitHub-hosted runners yet. The first CI run on this PR is the real test; I'll fix anything it shows. - The `linux-clang` job's sccache / Vulkan-header cache steps are copied from the existing `linux-gpu-tools` job.
- runtime.yml linux-clang: the native Linux runtime build and ctest with
  Clang; linux-gpu-tools builds with the runner's GCC only. It checks the
  compiler CMake picked really is Clang.
- ci.yml rpf9dump-linux: builds the asset exporter on Linux (the check job
  builds it on Windows only) and runs the synthetic TTPF retry test and the
  diagnostics project. tests/test_rpf9dump_exit_codes.py is left to the
  check job: two of its cases fail on Linux because the directory they put
  at <file>.partial no longer blocks Util.WriteAtomic's unique temp name.
- ci.yml stdlib-tests-linux: ./Build.sh --help, as check runs
  make_game.py --help on Windows.

Actions are pinned to the same commits as the existing jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:15:54 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 13:20 UTC · original · reviewed

Independent Bazzite/Linux verification of PR head 68e43c552de2604d7ee36f6159ce2a8c1f1a62d3 (base 21625bca8c675c62f9dbffc318ce6a59d57faf31): ./Build.sh --help passed; Clang 23.1.5 configured with LEONIDA_REQUIRE_VULKAN=ON and built 161/161 targets; CTest completed with 70 passed, 2 skipped (shader_library_corpus requires a corpus; vk_sync_validation requires validation support), and 0 failed. The Linux rpf9dump checks also passed locally: .NET 8.0.428 build (0 warnings/errors), TTPF export-resume 4/4, and all diagnostics smoke checks. No game data used; Clang and .NET ran in temporary Fedora 45/Debian 12 containers on a Bazzite host.

At the latest hosted-check inspection, linux-clang, jactionlint, no-game-data, windows, and change-scope checks passed; linux-gpu-tools failed, but its job log was unavailable (cause unknown); several other checks remained queued. This local verification does not replace hosted CI. AI-assisted independent verification.

**@⁠KernelSmoker** on GitHub · 2026-11-24 13:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/679#pullrequestreview-6039907948) · **reviewed** Independent Bazzite/Linux verification of PR head `68e43c552de2604d7ee36f6159ce2a8c1f1a62d3` (base `21625bca8c675c62f9dbffc318ce6a59d57faf31`): `./Build.sh --help` passed; Clang 23.1.5 configured with `LEONIDA_REQUIRE_VULKAN=ON` and built 161/161 targets; CTest completed with 70 passed, 2 skipped (`shader_library_corpus` requires a corpus; `vk_sync_validation` requires validation support), and 0 failed. The Linux rpf9dump checks also passed locally: .NET 8.0.428 build (0 warnings/errors), TTPF export-resume 4/4, and all diagnostics smoke checks. No game data used; Clang and .NET ran in temporary Fedora 45/Debian 12 containers on a Bazzite host. At the latest hosted-check inspection, `linux-clang`, `jactionlint`, `no-game-data`, `windows`, and change-scope checks passed; `linux-gpu-tools` failed, but its job log was unavailable (cause unknown); several other checks remained queued. This local verification does not replace hosted CI. AI-assisted independent verification.
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/679/head:github-bot/gh-679'
git switch 'github-bot/gh-679'

Merge

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