Releases
How the engine gets from main to something people can download: the version string, the release notes, the Build Engine workflow (.github/workflows/build-engine.yml) and the packaging script it calls (scripts/package-release.sh).
The version is one string
ENGINE_VERSION in crates/api/renzora_platform_api/src/version.rs is the engine's version: r1-alpha8 today. Plugins and scripts reach it as renzora::version. It is what the editor shows, what the docs directory is named after (docs/r1-alpha8/), what the release workflow compares a tag against, and what the export downloader asks GitHub for.
Four other places write it down again, and none of them fails loudly on its own when it drifts. scripts/check-versions.sh checks them all, and CI's versions job runs it on every push:
| Copy | What goes wrong when it is stale |
|---|---|
docs/<version>/ and its _sidebar.json | the docs site serves nothing for the default version |
docs/_versions.json's default | the site serves a version the engine is not |
RELEASE_NOTES.md, within its first five lines | a release publishes the previous version's notes under its own tag |
PAST_ENGINE_VERSIONS in crates/renzora_marketplace/src/upload_panel.rs | a seller cannot declare the version they built against |
Run it locally with bash scripts/check-versions.sh.
A published binary also carries two values CI passes in at compile time, read with option_env!:
| Variable | Value | Absent means |
|---|---|---|
RENZORA_RELEASE_TAG | r1-alpha8, or r1-alpha8-nightly-26nov26 | a build from source, shown as r1-alpha8 (dev) |
RENZORA_BUILD_COMMIT | the commit the build was cut from |
A tag equal to ENGINE_VERSION is a release; any other tag is a nightly. option_env! is baked in when the crate compiles, so only a clean build picks these up. CI builds clean every run.
Release notes
RELEASE_NOTES.md at the repository root is written as work lands, not reconstructed at the end. A nightly is published every day something lands on main, and these notes are the only record of what a given nightly contains.
Every new feature and every fix adds its line, in the same change that ships it. A missing note is treated exactly like a missing docs update: the change is unfinished.
Keep it to one short sentence. What was added, changed or fixed, and nothing else: no root cause, no measurements, no explanation of the mechanism. This is a changelog a user skims. The reasoning belongs in the commit body and the doc-comments, where the people who need it will look. If a line needs a second sentence, it is usually two changes and should be two lines.
Each change gets a heading with the date and time it was made, as YYYY-MM-DD HH:MM, newest first. Read the clock; do not guess the time. Lines that land together may share a heading; a change made at a different time gets its own.
# Renzora Engine `r1-alpha8`
## 2026-09-15 14:32
- feat(export): a plugin can add its own export capability
## 2026-09-15 11:46
- fix(editor): the viewport works again after opening a project from the File menu
Use the commit-subject voice (feat(...), fix(...)), with no em dashes.
What a nightly publishes
A nightly's page lists only the lines that are new since the previous nightly, under Since the last nightly, keeping their timestamp headings so the page says when each landed. scripts/nightly-notes.sh works that out by comparing the file with its copy at the previous nightly's tag, so there is nothing to do by hand after a publish. A line edited after it shipped counts as new. Preview the next page with:
scripts/nightly-notes.sh RELEASE_NOTES.md <(git show <last-nightly-tag>:RELEASE_NOTES.md)
The script reads the current file only down to the first ## heading that does not begin with a digit: a hand-added tag heading, or the prose headings of a curated release. Nothing keys on a fixed section name, which is what lets the headings carry a date. Old tag headings in the file are harmless. A file with no timestamped section at all is fine too: the nightly falls back to the standard description of its downloads.
What a release publishes
A major release overwrites the file. Cutting r1-alphaN replaces RELEASE_NOTES.md with curated notes for that version: prose organised by theme, not the running list, which has done its job by then. The lines it replaces stay published on each nightly's GitHub page, which is the permanent copy. Prose headings are not timestamps, so a nightly cut in the window after a release correctly finds nothing new to report.
The file must name the version being released in its first five lines. The workflow's setup job refuses to start a release whose notes do not, because the failure mode of a hand-written file is not a missing one but a stale one: the previous version's notes shipping under the new tag. The check sits in setup, which takes seconds, rather than in publish, hours downstream.
Three ways a build starts
| Trigger | Tag | Kind |
|---|---|---|
schedule, 02:00 UTC daily | <version>-nightly-<ddmonyy>, e.g. r1-alpha8-nightly-26nov26 | prerelease |
a pushed r1-alpha* tag | the tag | release |
workflow_dispatch | depends on the publish choice | see Running it by hand |
- Quiet days are skipped. If nothing landed on
mainin the last 24 hours, the scheduled run stops insetuprather than publishing an identical nightly. - A same-day re-run replaces that day's nightly instead of inventing a suffix nobody could predict.
- The 14 most recent nightlies are kept; older ones are deleted with their tags. Releases are never pruned.
What gets built where
| Platform | Where |
|---|---|
linux-x64 | an almalinux:8 container on an ubuntu-24.04 runner |
linux-arm64 | an almalinux:8 container on an ubuntu-24.04-arm runner |
windows-x64 | native windows-latest runner |
windows-arm64 | native windows-11-arm runner |
macos-x64 | native macos-26-intel runner |
macos-arm64 | native macos-latest runner |
web-wasm32 | the ghcr.io/renzora/wasm toolchain container |
Every desktop slice is built natively, each lane running cargo renzora dist --bundle, the same command a contributor uses. An editor ships a plugin SDK, and an SDK cannot be cross-built (see Cross-Compiling), so the published editors come from their own operating systems. One native tree yields both release assets for its platform: the engine, and the export template cut from the same directory.
Linux builds in AlmaLinux 8 for its glibc, not for cross-compiling. A Linux binary needs at least the glibc it was linked against, so the build environment sets the oldest distribution the release runs on. EL8's glibc 2.28 reaches back to Ubuntu 20.04, Debian 10 and RHEL 8. .github/scripts/el8-toolchain.sh sets the compilers up, and the lane fails if any staged file needs a newer GLIBC or GLIBCXX.
None of the desktop lanes has a build cache and each takes hours, which makes them the long pole on every publishing run.
Every lane starts what it built
Right after the build, each desktop lane runs .github/scripts/smoke-test.sh:
| Run | Where | What it proves |
|---|---|---|
renzora --server | every desktop platform | the OS loader accepts the binary, every shared image resolves, the full engine plugin set builds and the main loop runs |
| the editor, through the AppImage | Linux | the window opens and the renderer starts (Mesa's software Vulkan on a virtual display), and the editor image loads |
A run passes when the process is still alive at the end and logged no panic. Exiting early, with any code, fails, because neither mode exits on its own. Windows and macOS runners have no GPU a renderer can use, so there the server run is the whole test.
Nothing publishes unless everything built
The publish job waits for every desktop lane and the wasm build, and does not run if any of them failed: no release is created and the previous nightly with the same tag is left alone. A lost runner costs a retry, not a half-empty release. Use Re-run failed jobs on the run: it rebuilds only the failed lanes, keeps the others' artifacts, and then publishes.
What a release contains
Per desktop platform, from scripts/package-release.sh:
| Asset | What it is |
|---|---|
<platform>.zip | the engine: renzora, the editor image beside it, the shared images, plugins/ and the packed SDK. Windows is a flat folder; Linux ships the .AppImage; macOS is a signed, notarized Renzora Engine.app, zipped with ditto to preserve the signature |
renzora-runtime-<platform>.zip | the export template: the game runtime and its libraries, with no editor |
Plus web-wasm32.zip and renzora-runtime-web-wasm32.zip for the web, manifest.json (every asset with its size and SHA-256, which the editor reads to resolve and verify a template) and SHA256SUMS.
The export template is cut by scripts/package-release.sh --template-only <platform> <dist-dir> on the build lane itself, so there is one definition of what belongs in a template. A tree that arrives at packaging with no template is a hard failure, because a platform shipped without one would not be noticed until someone tried to export to it.
actions/upload-artifact does not preserve Unix file modes, so packaging restores the executable bit on everything that is launched (renzora, renzora-update, AppRun, the .AppImage) before zipping. Libraries that are loaded rather than launched stay 0644.
Build profiles
| Profile | Used by | Settings |
|---|---|---|
dist | cargo renzora, every --profile dist command, and the published desktop lanes | opt-level = 2, no LTO, symbols stripped, incremental for workspace crates only (Bevy's crates are not, so they keep cross-crate inlining) |
release | docker/build-all.sh (the container lanes) on Linux and macOS | opt-level = "s", thin LTO, symbols stripped |
release exists because shipping and iterating want opposite things: the smallest binary regardless of link time, against the fastest link regardless of size. opt-level = "s" and thin LTO are used together because neither works alone: at opt-level = 2, thin LTO inlines more than it removes and made the binaries bigger.
Windows cannot use release. A PE export ordinal is 16 bits, so a DLL exports at most 65,535 symbols. bevy_dylib exports about 42,000 at opt-level = 2 and about 270,000 at opt-level = "s", which rust-lld refuses. build-all.sh forces dist for every windows-* platform, and the published desktop lanes set RENZORA_PROFILE=dist.
Two settings are deliberately not used:
panic = "abort". The engine catches panics on purpose: the network pump guards each call into a backend, and the editor contains a panicking system rather than crashing. Underabortthose catches become no-ops.- UPX packing. Releases used to be packed, and it was removed: Windows Defender's machine-learning classifier flagged the packed
renzora.exeas a trojan, and packing rewrites the executable, which invalidates a code signature.renzora upxstill packs a tree on request; a release does not.
Checking the published plugins
A native plugin ships as source and is compiled where it is installed, so an engine change that breaks one is invisible here until a user's editor skips it. Every desktop lane therefore compiles every plugin in renzora/plugins against the SDK that lane just staged, using renzora_plugin_build's own driver: the same path a user's machine takes. It checks that each plugin compiles and exports renzora_native_plugin_ctor. It does not load them.
The check is report-only, written to the job summary. By the time it runs the lane has spent hours building, and a failed lane stops the whole release, so one broken plugin must not hold back every platform. Run the same check locally against any staged SDK:
cargo check-plugins --sdk dist/windows-x64/sdk --plugins ../plugins
On a publishing run the lanes also sign the compiled plugins, and after the release exists the workflow uploads them to the Marketplace as prebuilts for that exact build, builds third-party Marketplace plugins from source against it, and tells renzora/plugins that a release exists to publish against. Each of those steps is non-fatal: a plugin without a prebuilt installs from source.
The updater
The editor updates itself from these releases (Help > Check for Updates). It downloads the <platform>.zip for the host, verifies it against the SHA-256 GitHub publishes, and stages it under ~/.renzora/updates/<tag>/. The swap itself is done by a separate sidecar, renzora-update (tools/updater, its own cargo workspace), because a running editor cannot replace the files it is running from. The sidecar waits for the editor to exit, moves the old install aside to a sibling *.renzora-backup, installs the new one, carries the user's installed plugins across, and relaunches; any failure puts the backup back.
The channel is auto (follow the build: a nightly is offered nightlies, a release is offered releases), stable or nightly. The sidecar is never part of an export template: a game has no business shipping an engine updater.
Cutting a release
ENGINE_VERSIONmust already be the version you are releasing, withdocs/<version>/beside it. Do not bump it to the next version in this change: the workflow compares the constant with the tag to decide whether it is building a release or a nightly, so a constant that runs ahead of the tag makes the release classify itself as a nightly.- Replace
RELEASE_NOTES.mdwith the curated notes for this version, naming it in the first lines. - Record the release in
releases.json: the version, the commit it is cut from, the ABI hash, and"status": "released". The ABI hash is theRENZORA_BUILD_HASHthatbuild.rsemits, a hash of the crate version, the rustc version and the Bevy minor version; read it from a build's output rather than computing it by hand. - Land that on
main, and checkbash scripts/check-versions.shpasses. - Tag and push:
git tag r1-alphaN && git push origin r1-alphaN.
The tag push starts the workflow, which builds every platform and publishes the release. Nothing is uploaded by hand.
Opening the next version is a separate change, after the tag is pushed. In one commit: bump ENGINE_VERSION, fork docs/<next>/ from the current docs, point docs/_versions.json at it, and reset RELEASE_NOTES.md for the new version. From then on only the new docs directory is edited; the released one is frozen. The version check enforces that these agree.
Publishing also updates renzora.com/engine
Every nightly and release refreshes the browser build at renzora.com/engine from the release's web-wasm32.zip. The workflow's website job sends a repository_dispatch to the website repository carrying the tag it just published, and the website fetches and serves that build. The job is non-fatal and runs after the release is published: a website one build behind is not a reason to fail a good release.
Running it by hand
Actions > Build Engine > Run workflow, choosing a platform (all, an OS such as windows, or one slice such as windows-x64) and a publish mode:
publish | What happens |
|---|---|
none | build and upload GitHub artifacts only; the way to check that a platform still builds |
dev | build and package exactly what a nightly would, and publish nothing; the packaged downloads are kept on the run for 30 days |
promote-dev | publish a tested dev run's files, byte for byte, as a nightly; set dev_run to that run's ID |
nightly | build and publish a nightly |
release | build and publish a release |
web | rebuild only the web editor into the newest release and refresh renzora.com/engine; ignores platform |
A dev build is stamped with the nightly tag it would get, because the tag is compiled into the binary, and promoting it publishes under that tag and at the dev build's commit. A dev build of one platform promotes to a nightly with only that platform, so build all when the result is meant to be published.
Do not use publish: nightly with platform: wasm to fix the web build: it would replace the whole nightly with a release holding only the web files. Use publish: web.
Where to go next
- Export Templates: how the editor finds, downloads and uses a template.
- Cross-Compiling: the toolchain images.
- Building from Source:
cargo renzorafor local work.