Add workflow actions
build / nix-build (push) Canceled after 0s

This commit is contained in:
NeilClack
2026-08-07 15:02:19 -05:00
parent 9251b3a196
commit aa65f75e9f
3 changed files with 38 additions and 2 deletions
+6 -1
View File
@@ -199,7 +199,12 @@ cached.
- Do not commit audio assets (`.wav` files) — downloaded at runtime.
- Do not modify files in `archive/` — reference only.
- Build needs SDL3 + SDL3_ttf/image/mixer/net + GTest installed; CI uses
self-hosted Forgejo runners.
Gitea Actions on a self-hosted host runner (`build-server`, no docker).
The workflow lives in `.gitea/workflows/build.yml` and runs on both `dev`
and `main`. It runs `nix build -L .#checks.default` (build + the offline
test suite); when the `RW_LIVE_API_KEY` secret is set it also runs
`test_api_client` / `test_license_service` against the portal via
`nix develop` (outside the sandbox, like a dev machine).
- `test_assets` must pass before committing — it catches missing fonts/images
that break the app at runtime.
- `cmake --build build` builds everything; pass `--target <name>` to build one