# Continuous integration

> What CI builds, boots and checks for each target on a push and on a tag, the size it holds every release binary to, what it pins so the build cannot change under you, and how to read a run that went red.

Source: https://omardev29.github.io/rmp-docs/publishing/ci.html

Every game made with `rmp new` carries the framework's CI, and it runs as soon as the game's repository is on GitHub. A push builds the targets that catch most mistakes, starts the game and looks at the pixels it draws, in about ten minutes; a tag builds every target the game enables — all 17 of them unless it switches some off — and publishes the release. Building is the easy half: the point of the pipeline is that a game which compiles and draws nothing is a red run.

## When it runs

| Event | What runs |
|---|---|
| A push to `main`, a pull request | The fast lane: `linux-x64-glibc`, `web`, `windows-x64` and `android`, and the `lint` job. Nothing at all with [`[ci] on_push = false`](https://omardev29.github.io/rmp-docs/publishing/ci.html#on-push). |
| A tag starting with `v` | The full matrix — every target `[targets]` enables — then the GitHub release, then itch.io. |
| Started by hand | The fast lane, or the full matrix with `full`, or exactly the groups and targets `targets` lists, separated by commas. |

A push or pull request that changes only Markdown files or `LICENSE` runs nothing. A target switched off in `[targets]` is never built, on any event.

```shell
gh workflow run ci.yml -f full=true      # every enabled target, without a tag
gh workflow run ci.yml -f targets=drm    # one group or target, built in full
gh workflow run ci.yml -f targets=linux-x64-glibc,windows-x64,macos
```

`targets` narrows what the .toml enables and can never add to it. It takes one group or target, or several separated by commas, and builds what they come to together, each in full. A name that does not exist, one whose targets the .toml all switched off, one given twice and an empty one between two commas each stop the run in its first job, saying which item it was: a run that asked for a platform and quietly did not build it would be a green that proved nothing about it.

The last line above is how to check a fix for a red fast lane on just the platforms it involves, before the next push.

A third input, `image_digest`, builds with another build image than the pinned one, to try a new image before committing to it.

A new push to a branch cancels that branch's run still in progress — a run of a commit nobody wants any more is minutes wasted. A tag's run is never cancelled. To push without killing a run you are waiting for, use `rmp push`: it asks `gh` for the CI runs that have not finished, refuses while there is one and names it, and `rmp push force` pushes anyway.

The check needs `gh`, installed and signed in. Without it, or when `gh` cannot list the runs, `rmp push` says so in one line and pushes without checking — and a run in flight is cancelled all the same.

### Only when you ask: [ci] on_push

Running on every push is what keeps a mistake from waiting for the release to be found, and for a public repository it costs nothing. A private repository pays in [Actions minutes](https://docs.github.com/en/billing/concepts/product-billing/github-actions), from a monthly allowance, and a fast lane on every commit can spend it. One line of the `.toml` turns those runs off:

raylib_multiplatform.toml

```toml
[ci]
on_push = false
```

Then a push to a branch starts no run, and neither does a pull request. A tag `v*` still builds every target and releases — which is what `rmp deploy` pushes — and `gh workflow run ci.yml` runs the fast lane whenever you want it, or the full matrix with `-f full=true`. `true`, the default, is the table above.

It is applied by writing the workflow, not by a condition inside it. GitHub reads a workflow's `on:` before any of its expressions runs, so a run that should not exist cannot skip itself from the inside; it can only not be started. So `tools/configure.py` writes the `push` and `pull_request` triggers of `.github/workflows/ci.yml` from this line, on the next build, between two marker lines:

```yaml
on:
  # BEGIN generated by tools/configure.py from [ci] on_push: edit the .toml, not this block
  # [ci] on_push = false: no run on a push to a branch, and none on a pull
  # request. A tag v* still builds every target and releases, and
  # `gh workflow run ci.yml` runs the fast lane by hand.
  push:
    tags: ['v*']
  # END generated from [ci] on_push
  workflow_dispatch:
```

Nothing else in the file is generated, so a game that turns pushes off still has the framework's `ci.yml` in every other line. Commit `ci.yml` with the `.toml`: GitHub runs the workflow that is committed, not the one on your disk. A `ci.yml` whose triggers say something else than the `.toml` is refused, at the `.toml`'s line, by `rmp test config` and by the first job of CI, which only compares and never writes:

`[ci] on_push = false, and the triggers in .github/workflows/ci.yml are not the ones it
writes.`

`rmp push` knows: with `on_push = false` a push starts no run and so cancels none, and it pushes without asking `gh`. Unless `ci.yml` has changes that are not committed yet — the commit being pushed may still have the old triggers, and then it checks as it always does.

### RISC-V on RISC-V: [ci] riscv64

`linux-riscv64-glibc` can be built and started three ways, and one line of the `.toml` picks. `"cross"`, what `rmp new` writes, cross-compiles it on GitHub's amd64 runners and starts its archive under QEMU. The other two build and start it natively, on a real RISC-V board, and keep the cross build as their fallback: when the board fails or never comes, the cross build runs and ships, and the run's summary says so.

| Value | The board | For |
|---|---|---|
| `"rise"` | a [RISE](https://riscv-runners.riseproject.dev/) runner (`ubuntu-24.04-riscv`), lent free by the RISE project | an open-source repository; the framework's own setting |
| `"cloud-v"` | a [Cloud-V](https://cloud-v.co/github-riscv-runner) Milk-V Pioneer, 64 cores (`[self-hosted, milkv-pioneer]`) | a private repository — most games — which RISE's offer to open source does not cover |
| `"cross"` | none: amd64 and QEMU | a repository with neither app, which is how every game starts |

raylib_multiplatform.toml

```toml
[ci]
riscv64 = "rise"
```

Both boards run the same job, `riscv64-native`, which builds, packs and starts the game inside the pinned `raylib-build-riscv64` image, so the binary is the cross build's: one size line, one glibc floor. Each provider needs its GitHub App installed on the repository first. Without it, no board ever picks the job up, and it waits in GitHub's queue for a day before the fallback runs, so a game stays on `"cross"` until an app is in. A board with no Docker fails the job's first step, and the fallback ships. Anything but the three words is refused by `configure.py`, at the line.

`rmp
deploy` asks whether the repository is public when the line says `"rise"`: through `gh` when it is installed and signed in, through GitHub's public API when it is not. A private repository, or one it cannot tell, gets a warning that names `"cloud-v"`, and the tag is pushed all the same: the release ships, through the fallback if no board comes.

## What each target gets

A target is **booted** when CI starts the game, lets it draw a bounded number of frames, and checks what it printed. It is **checked statically** when CI inspects the file it built without running it — its format, its architecture, what it links.

| Target | Lane | What CI does with it |
|---|---|---|
| `linux-x64-glibc` | every push | Booted under a virtual X server. Then the archive it ships is unzipped and started from another folder: the binary a player gets, compressed when `[upx]` says so, has to find its `resources/`. Checked: x86-64 ELF, no debug sections, glibc no newer than `[linux] glibc`, [linked hardened](https://omardev29.github.io/rmp-docs/publishing/desktop.html#hardening). |
| `linux-arm64-glibc` | full | Booted under a virtual X server on an ARM64 runner, and its archive unzipped and started from another folder, as on x64. Checked: aarch64 ELF, the glibc floor, linked hardened. |
| `linux-riscv64-glibc` | full | Cross-compiled; checked statically (RISC-V ELF), and held to a glibc floor of its own, 2.38, which the note on `[linux] glibc` in the .toml names because the setting does not reach this target. Checked as well: linked hardened. Built and started on a RISC-V board when `[ci] riscv64` names one (below); otherwise, or when the board fails, the archive it ships is unzipped and started from another folder under QEMU, in the build image: the RISC-V binary and the RISC-V libraries it opens, emulated, drawing with Mesa's software OpenGL under a virtual X server. Not compressed unless named in `[upx]`: UPX's RISC-V stub dies on kernels before 6.3. |
| `linux-x64-musl` | full | Checked: no glibc symbol in it, linked hardened, and what it asks the system for is musl and nothing else — musl's loader and musl's `libc.so`, read out of the binary. Then on Alpine, in an image of the framework's own pinned by digest, with the network off and started from `/`: a software-rendered release of the game is booted, and the binary the archive ships, compressed by default, is unzipped and started under a virtual X server. |
| `linux-x64-glibc-drm` | full | The binary the archive ships, compressed by default, is unzipped and booted through DRM/KMS on a virtual display the kernel provides, started from `/`. Checked: it links `libdrm` and no X11 or Wayland, linked hardened; its real glibc floor is printed. Then, on the same display and in the build image, `./rmp run` is started the way a [Linux console](https://omardev29.github.io/rmp-docs/manual/platforms/linux-console.html) starts it, with no display and `XDG_SESSION_TYPE=tty`: it has to choose DRM/KMS by itself, build `build/debug-drm`, check `/dev` before the game and boot it. |
| `linux-arm64-glibc-drm` | full | Checked statically: aarch64, `libdrm`, no X11 or Wayland, linked hardened. Not run: a virtual display would not answer the question a Raspberry Pi's own display pipeline does. |
| `windows-x64` | every push | Checked: a PE whose imports are all part of Windows 10, carrying its icon when `[icon] source` exists. Booted on a real Windows runner, started from a folder that is not its own, with Mesa's software OpenGL next to the `.exe` and the compiler off `PATH`, with the player's data folder set to a path that is not ASCII and a save written there and read back. The three Mesa DLLs are deleted before packaging, and the zip is checked to carry neither `opengl32.dll` nor `libgallium_wgl.dll`. |
| `windows-arm64` | full | Cross-compiled; checked statically — an ARM64 PE, its imports all part of Windows 10, its icon — and never run. |
| `macos` | full | Checked: a universal Mach-O with both slices, neither asking for a newer macOS than the deployment target — 10.15, and 11 for arm64. A software-rendered build of the game is booted on the runner, and a software-rendered release is started from the project folder where it was built and then, laid out as the archive ships it, from another folder. |
| `ios` | full | Engine and simulator app built; the bundle checked for its identifier and its `resources/`. The simulator boot is off unless `IOS_SIMULATOR_TEST` is `true`. |
| `web` | every push | Booted in headless Chromium: a screenshot of the canvas is measured, and a save is written to IndexedDB and read back. |
| `android` | every push | Debug APK and signed App Bundle built, by Gradle working offline from the build image ([below](https://omardev29.github.io/rmp-docs/publishing/ci.html#gradle-offline)). Checked: the manifest and native library in the APK, the bundle's signature and signer, and that the bundle was compiled as a release. Not run, unless Firebase Test Lab is configured — then on Test Lab's device (by default MediumPhone.arm, an Arm virtual device), on full runs. |
| `freebsd-x64`, `freebsd-arm64`, `openbsd-x64`, `openbsd-arm64`, `netbsd-x64` | full | Built inside a virtual machine of each system. Checked: an ELF. A software-rendered build of the game is booted in the same machine, and a software-rendered release is started from the project folder where it was built and then, laid out as the archive ships it, from another folder. OpenBSD and NetBSD cannot say where an executable is, so there the shipped release is started from its own folder and has to log that it reads the working directory's `resources/`. |

Next to the platforms, the `lint` job runs on every push. In a game it checks the workflows (actionlint, with shellcheck over every script in them), validates the configuration, compares every pinned version across the files that state it, checks the [size budget](https://omardev29.github.io/rmp-docs/publishing/ci.html#size-budget) when the game has one, checks every licence, runs the game's own tests in `tests/game/` — and says it skipped them when there are none — and draws a frame with raylib's software renderer, in a debug build that runs under whatever [`[dev] sanitize`](https://omardev29.github.io/rmp-docs/manual/basics/configuration.html#sanitizers) lists. In the framework's own repository it also runs the framework's tests and gates, and jobs of its own run clang-tidy over its code, build and boot every example, [play the examples that have a script](https://omardev29.github.io/rmp-docs/framework/testing.html#e2e), measure [what the framework's tests reach](https://omardev29.github.io/rmp-docs/framework/testing.html#coverage), run the [deep tests' short runs](https://omardev29.github.io/rmp-docs/framework/testing.html#ci), make a game with `rmp new` to test it — and a copy of that game in plain C, made the way `examples/plain_c` says, booted and its release started from the project folder and from another — and check this documentation against the commit. A release of the framework waits for every one of those jobs; in a game they are skipped, and the release does not wait for them.

### What booted means

Every booted target but the web runs with `RAY_TEST_MAX_FRAMES` set, which makes the game draw that many frames and exit. The web test cannot set it: it opens the page with `?ray_test_save=1`, which asks the game for the save round trip the other targets do under that variable, lets it run for fifteen seconds, screenshots the canvas, and closes the browser — the game itself never exits. The game prints markers. The boot marker is printed on every launch that opens a window, a player's included; the frame read-back and the frame count happen only under `RAY_TEST_MAX_FRAMES`, and in a normal run, with the variable unset, they do not exist. Every booted target requires the first marker with `assets_failed=0` — the Linux runs, musl and DRM among them, Windows, macOS, the BSDs, the web, and the iOS simulator when it is on — and the runs on Linux, Windows, macOS and the BSDs require all three; the web test reads the boot marker from the browser's console and measures the canvas itself:

`RAY_TEST_BOOT_OK assets_failed=0`

A window opened, and every asset the game asked for was found and decoded: a file that is there and cannot be read as an image, a sound, a song or a font counts as failed, the same as a missing one. Neither stops a game from starting, which is why the count is part of the marker.

`RAY_TEST_RENDER_OK`

A frame was read back, and the share of its pixels that differ from its most common colour is in a sane range. A broken shader or a lost texture still boots and still exits cleanly; a blank frame does not pass this.

`RAY_TEST_DONE_FRAMES`

The game drew every frame of its budget without dying: a crash in the middle of a run fails here. It is printed at the end of the last frame, before the game shuts down, so a crash while it shuts down comes after it.

A crash on the way out — in the game's stop hook, or as the window closes — comes after every marker, and only the exit code catches it. So does a leak, which LeakSanitizer reports as a sanitized debug build exits. These runs read the exit code, and fail on anything but 0: the Linux x64 and ARM64 boots and their archives started from another folder, the RISC-V archive under QEMU, the Windows boot, both starts on Alpine, the DRM boot, the software-rendered runs on macOS and the BSDs and in the `lint` job, the release started from another folder on macOS and the BSDs, and `rmp test smoke` and `rmp test render`. The software-rendered runs and the two `rmp test` stages fail on a sanitizer's report as well. The iOS simulator's boot is the one that does not: the app is launched in the background and its log read, so a crash after its last frame passes there.

The markers come from `tests/smoke_test.h`, which every game carries. The share of pixels is the gate everywhere because GPUs and software renderers disagree on the details of a frame; where the frame is drawn by raylib's own software renderer it is identical on every system, and the framework's own CI compares it with a recorded hash as well. A game has no recorded frame, so its software render checks the boot, the pixels and that every frame of the budget was drawn.

### What no job checks

- `windows-arm64` and `linux-arm64-glibc-drm` are never run, and `linux-riscv64-glibc` runs on a RISC-V board only when `[ci] riscv64` names one and the board answers; otherwise only under an emulator, which is not a RISC-V machine.
- On macOS and the BSDs, what is booted is a software-rendered build of the game, not the executable that ships; the shipped one is checked statically.
- A binary compressed with UPX is started only on `linux-x64-glibc`, `linux-arm64-glibc`, `linux-x64-musl` and `linux-x64-glibc-drm`, whose jobs start the archive they ship — the four `[upx]` compresses by default. On a target added to `[upx] enabled` beyond those, it is only verified with `upx -t`.
- iOS is not started unless you turn the simulator test on, and Android is not started unless Firebase Test Lab is configured.
- Nothing here plays your game. A game that boots and draws and is broken from its second screen on passes every gate. Test your game on the platforms you ship.

## The size budget

A release is kept as small as it can be, and without a number written down nothing would notice it growing by a third between two releases. So every release job — Linux, Windows, macOS, the BSDs and the web, and Android once per ABI of the bundle — runs `tools/size_check.py` on its binary as soon as it is final, and holds it to its line in `tools/size_budget.txt`: the size as the linker wrote it and, for a target `[upx]` compresses, the size of the copy that ships. Within 1.5% of the line, either way, it passes and says nothing. Past that it passes with a warning that names the new number, in the log and on the run's summary page, where a passing job's log is never read. Past 10% it fails. Over is a growth nobody wrote down; under is a stale line, which would let the next growth through without a word. Growing is allowed: the line is where it is written down, in the commit that grows it.

```text
# binary               kind    unpacked    packed
linux-x64-glibc        elf      1310720    389120  # measured at 1a2b3c4
windows-x64            pe       2293760         -  # measured at 1a2b3c4
```

That is how a game's budget reads. Each line is a binary, what kind of file it is, its size unpacked, and its size packed or `-` where UPX does not apply, with the commit it was measured on. Every check prints the line it measured in that same format, pass or fail, so one run's log is all an update needs:

```shell
gh run view 12345678 --log | python3 tools/size_check.py --update -
```

A game starts without a budget: `rmp new` does not copy the framework's, whose sizes are its own demo game's. A game's release jobs measure all the same, print each line and say the game has no budget, and the `lint` job says so too instead of failing. To start one, run the full matrix once — a tag, or `gh workflow run ci.yml -f full=true` — then create an empty `tools/size_budget.txt`, fill it from that run's log with the line above, and commit it. From then on the game is held to it exactly as the framework is: the `lint` job checks the file on every push — a line for every binary an enabled target ships, none for one nothing ships, a packed size exactly where `[upx]` compresses — and every release job holds its binary to its line.

## What is pinned

A green run should mean the same thing in six months as today, so what a build depends on is pinned wherever it can be:

- **The build image, by digest.** The Linux builds, the web and Android builds, the lint job and the itch.io upload run inside `ghcr.io/omardev29/raylib-build`, named by its `sha256` digest and never by a tag, which could be moved. The image carries the compilers and tools those jobs use — CMake, Ninja, Emscripten, the Android SDK and NDK, zig, UPX, butler, actionlint and shellcheck, LLVM 18 with the runtimes the sanitizers need, cppcheck, and the Python test tools — so none of them is fetched while a job runs. It is built for x86-64 and ARM64, each on a runner of its own architecture, and each is checked before the image is published. Its own packages come from a dated Ubuntu snapshot, and the build jobs print the image's manifest as their first step, so a log says which toolchain produced it.
- **Gradle, from the image.** The image also carries a Gradle home warmed for the framework's Gradle wrapper, its Android build plugin and the AdMob SDK, and the Android job runs Gradle with `--offline` from it: the job downloads nothing, and a library the image lacks fails the build at once, by name. `--offline` does not reach the wrapper, so a step first checks, by the wrapper's own rule, that the Gradle it asks for is in the image, and fails naming it when it is not. A game that adds a Gradle dependency of its own sets [`[android] gradle_offline = false`](https://omardev29.github.io/rmp-docs/reference/configuration.html#android-gradle_offline): Gradle then downloads what the image lacks, and the job says so in a warning. `rmp
android` on your machine is never offline.
- **The runners and Xcode.** Runner images by explicit label, never `-latest`, and on macOS an explicit Xcode version, with a step that fails and lists what is installed when the pinned one is gone. A label fixes the operating system, not every tool GitHub installs on it: the Windows jobs build with the compilers the runner image carries. The `windows-x64` job builds with whichever compiler CMake finds first on the runner's `PATH`, and prints which one built the `.exe`; the `windows-arm64` job builds with the newest Visual Studio the runner has, and has no such step.
- **Every download** the other jobs make — Ninja and XcodeGen on macOS, Mesa and UPX on Windows — at a fixed version, checked against its `sha256`; Pillow, which the Windows jobs install to make the icon, comes from PyPI with `pip --require-hashes`, so no other file is accepted. Chromium itself, for the web test, comes through Playwright, pinned by `package-lock.json`.
- **The Alpine the musl build is started on** is the framework's own image, `ghcr.io/omardev29/raylib-run-alpine`, by digest: Alpine itself pinned by its digest, with the virtual X server, Mesa and the X libraries an Alpine desktop gives the game, and checked when it is built by drawing on it. The job downloads nothing into it, and every container it starts runs with the network off. No workflow takes an image from Docker Hub. Every container that starts a game, here and in the DRM job, has an init as its first process, so that a game that hangs is ended by its step's timeout instead of holding the job until the job's own limit: a program that is a container's first process ignores a SIGTERM it has no handler for.
- **Every GitHub Action**, by the full commit it resolves to, with the tag in a comment beside it.

The versions live in `thirdparty/FROZEN_VERSIONS.md`, the first job reads them from there and hands them to the others, and `tools/versions_check.sh` — part of `rmp test config` and of the lint job — fails if any two places disagree. A game keeps the pins it was made with; they change when the game changes them.

The exception is the BSDs. Their virtual-machine images and package mirrors move from day to day, and neither offers a snapshot to pin to, so those jobs install whatever the mirror serves that day. When a BSD job fails after the rest of the run passed, and nothing you changed explains it, suspect the mirror first. The arm64 machines are emulated on an x86-64 runner, which makes their jobs the slowest of a full run, and each BSD job is allowed two hours.

Two other exceptions are narrow. The job that boots DRM installs the kernel's extra modules on its runner when the virtual display driver is missing from it, after the binary it tests has already been built: it is the one place a Linux job downloads.

And the web test installs the system libraries Chromium needs with `playwright install --with-deps`, which takes them from the runner's Ubuntu package mirror at whatever version it serves that day; nothing pins or checksums them. The game it tests is built before, in the image.

## The canary

Pinning stops the world from breaking a build, and it also stops anyone from noticing that the world moved. The framework's own repository runs a *canary* every Monday: the same workflows against the newest build image, the newest runner images, the newest Xcode and the newest Mesa, to find what the next bump of the pins will break before anyone needs it. It runs only in `omardev29/raylib_multiplatform`, and `rmp new` does not copy it into a game: a game's CI never runs it.

## Secrets and variables

The workflows read these from the repository's settings and from nowhere else. Every one is optional: without it, what needs it is skipped — the itch.io upload, the Test Lab run — or done another way — the App Bundle signed with a throwaway key — and the run stays green.

| Name | Kind | Read by |
|---|---|---|
| `ANDROID_KEYSTORE_BASE64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` | secrets | the Android job, to sign the App Bundle with your upload key |
| `ANDROID_SIGNER_CN` | variable | the Android job, to check the bundle's signer by name |
| `BUTLER_API_KEY` | secret | the itch.io job |
| `ITCH_USER`, `ITCH_GAME` | variables | the itch.io job, ahead of `[deploy.itch]` |
| `GCP_SA_KEY` | secret | the Firebase Test Lab job |
| `FIREBASE_PROJECT`, `FIREBASE_DEVICE` | variables | the Firebase Test Lab job, ahead of `[deploy.firebase]` |
| `FIREBASE_RESULTS_BUCKET` | variable | the Firebase Test Lab job, for where its results go |
| `IOS_SIMULATOR_TEST` | variable | the iOS job: `true` turns the simulator boot on |

The release itself needs none: it publishes with the run's own token.

## Reading a red run

Open the run on GitHub, or follow it from a terminal with `gh run watch`, and start from the first job that failed: everything after it may only be its consequence. The job's name says which platform — `linux / x64`, `windows / x64`, `apple / macos`, `bsd / build (freebsd, …)`, `web / boot-test`, `android / build` — and the failing step says which stage. Most checks that fail print a line starting with `FAIL` that says what they found.

| Red | What it usually means | On your machine |
|---|---|---|
| `config` | The .toml is invalid, a tag build found a placeholder `com.example.` id, or the triggers of `ci.yml` are not what `[ci] on_push` writes. | `rmp test config`; for the triggers, any build, then commit `ci.yml` |
| `lint` | A workflow does not lint, two pinned versions disagree, the size budget lacks a line or has a wrong one, a licence is unknown, a test in `tests/game/` failed, or the software-rendered frame failed. | `rmp test config`, `python3 tools/size_check.py --check-file`, `rmp test unit`, `rmp test render` |
| A step that configures or generates, on a tag | The tag is not `vMAJOR.MINOR.PATCH`. | `rmp deploy` checks it before tagging. |
| A build step | The code does not compile on that platform's compiler. | `rmp build release` |
| A runtime test | The game did not boot, lost an asset — missing, or there and not decodable — drew nothing, or died before the end of its frame budget — or, in the runs that read the exit code, exited with an error, or, in a sanitized debug build, a sanitizer reported something. The captured output, or the report, is printed above the verdict. | `rmp test smoke`, `rmp test render` |
| *The archive starts from any folder*, or *the release starts from any folder* | Started away from its folder, the release did not find the `resources/` beside it; or, in *the release starts from any folder*, started first from the project folder where it was built, with no `resources/` beside it, it did not read the project's. Either way an asset failed to load, and the line starting with `FAIL` says which start it was. | `sh tools/shipped_check.sh Ninja "" my_game` |
| *the .exe imports nothing Windows does not ship*, in `windows / x64` or `windows / arm64` | The `.exe` needs a DLL a player's Windows does not have — a compiler runtime linked dynamically — or lacks the icon `[icon] source` promises. The step names the DLL and how to link it in. | `python tools/binary_check.py windows build/release/my_game.exe` |
| *every slice runs on the macOS the build declares*, in `apple / macos` | A slice of the binary asks for a newer macOS than `CMAKE_OSX_DEPLOYMENT_TARGET`; the step names the slice and the version. | `python3 tools/binary_check.py macos build/release/my_game --min-os 10.15` |
| *It runs on older distributions than this one*, or in `linux / riscv64` *The glibc it needs, against the floor the .toml gives it* | The Linux binary needs a newer glibc than `[linux] glibc` — or, for `linux-riscv64-glibc`, than 2.38; the step lists the symbols that ask for it. | `tools/glibc_check.sh` on the binary |
| *Linked hardened*, in a Linux job, or *It needs nothing but musl* | The release lacks something it is linked with: read-only relocations (RELRO), symbols bound at start (BIND_NOW), a stack that is not executable, or, with `RMP_RELEASE_PIE` on, position independence; or a musl binary asks for a loader or a library that is not musl's. The step says which, and the linker flag that gives it. | `python3 tools/binary_check.py elf --pie build/release/my_game` |
| *Within its size budget* | A binary is more than 10% away from its line in `tools/size_budget.txt`, either way, or its line is `?`, a size nobody has measured. The step prints the line measured on this run, ready to paste. Between 1.5% and 10% it is a warning, and the job stays green. | [The size budget](https://omardev29.github.io/rmp-docs/publishing/ci.html#size-budget) |
| A BSD job, after everything else passed | Most often the package mirror. If the step *The VM script reached its end* failed, the build script stopped early without saying so. | `sh tools/render_check.sh Ninja "" my_game` runs its check anywhere |
| *Gradle, from the image*, in `android / build` | The build image does not carry the Gradle the wrapper asks for, so an offline build would have to download it; or, in the build that follows, a library the app needs is not in the image's Gradle home, and Gradle names it. | A game that added a Gradle dependency of its own: [`[android] gradle_offline = false`](https://omardev29.github.io/rmp-docs/reference/configuration.html#android-gradle_offline) |
| The AAB check in `android / build` | The bundle is signed by a key other than the one the secrets name, or its certificate has errors. | [Google Play](https://omardev29.github.io/rmp-docs/publishing/google-play.html#signing) |
| `release` skipped on a tag | A platform job or the lint job failed or was cancelled, so nothing was published. | Fix it and re-run the failed jobs. |

The runtime tests say which marker is missing. Locally, `rmp test smoke` builds the game, boots it for a few frames and makes the same two checks:

```shell
rmp test smoke
rmp test render
```

and stops with `FAIL: the game did not boot, or an asset failed to load` or `FAIL: the game booted and drew nothing` when one of them is not there. `rmp test render` builds the game for raylib's software renderer, with no window and no GPU, and runs exactly the check the macOS and BSD jobs run.

Some jobs leave something to look at: the web test uploads its screenshot of the canvas as `web-canvas-capture` when the frame was wrong, and the Windows test tries Mesa's `llvmpipe`, `softpipe` and `d3d12` drivers in turn and says which ones failed before it gives up. A yellow warning on the itch.io or Firebase job is not a failure: it is the job saying what is not configured, and skipping.
