Skip to content

Releasing

github-actions[bot] edited this page Dec 1, 2026 · 1 revision

Releasing

How a change becomes a release, and how this wiki is published. All of it is automated with GitHub Actions; the workflows are in .github/workflows.

Checks on every change

The CI workflow (ci.yml) runs on every pull request and every change to main, on Windows:

  1. cargo clippy with warnings treated as errors
  2. cargo test
  3. a release build
  4. the packaging step, so that a broken package is caught before release day

The zip it builds is kept on the run for 14 days, which is a convenient way to try a pull request without building it.

Changes that only touch docs/wiki skip CI.

Both CI and a local build use the Rust version named in rust-toolchain.toml, so a new Rust release cannot fail a check by itself. Raise the version there on purpose.

Making a release

  1. Open a version pull request. Set version in Cargo.toml, and in CHANGELOG.md turn the Unreleased section into ## [vX.Y.Z] - date, with its link at the bottom of the file. Build once so that Cargo.lock follows.

  2. Merge it.

  3. Tag main and push the tag:

    git tag vX.Y.Z origin/main
    git push origin vX.Y.Z

The tag starts the Release workflow (release.yml), which:

  1. refuses a tag that does not match the version in Cargo.toml;
  2. runs the tests and builds the program;
  3. packages it with tools/package.ps1;
  4. publishes the GitHub release with the zip and its notes.

The release is published at once, not as a draft. The built-in updater offers it to everyone the next time their copy starts.

Release notes

The notes are that version's section of the changelog, with the download instructions above it and the zip's SHA-256 below. Edit them on GitHub afterwards if they need more.

Build time

Version Built Takes about
x.0.0, 0.x.0 From nothing 20 minutes
0.0.x From the build cache CI keeps for main 5 minutes

A dry run

Started by hand from the Actions tab, the Release workflow does everything except publish. The zip and the notes are kept on the run to look at.

The package

tools/package.ps1 builds dist/OpenACMI-vX.Y.Z-windows-x64.zip and dist/release-notes.md from a built program. It can be run locally:

cargo build --release -p openacmi
pwsh tools/package.ps1

The zip holds a single folder with OpenACMI.exe, the tracked files of assets, the demo recording and the documents.

The updater depends on the zip's name and on that single top folder. Change either with care: an installed copy looks for exactly this layout.

A file a release stops shipping is not removed from copies that update, because an update only replaces files. Such files are listed in RETIRED_FILES in update.rs and deleted when the new version first starts.

This wiki

The pages are kept in docs/wiki of the repository, one Markdown file per page, and are changed through pull requests like the code.

The Wiki workflow (wiki.yml) copies that folder to the GitHub wiki whenever it changes on main. The wiki is a mirror: an edit made on the wiki itself is overwritten by the next publish.

  • A page's file name is its title with hyphens for spaces. Link to another page by that name without .md: [Threat rings](Threat-rings).

  • _Sidebar.md and _Footer.md appear on every page. A new page needs a line in the sidebar and on Home.md.

  • Some tables are generated from the code and the shipped data: the properties and type tags on ACMI file format, and the systems on Air Defence Database. After changing props.rs, tags.rs or assets/threats.toml, run:

    python tools/build_wiki_tables.py

    The workflow refuses to publish while a generated table is out of date.

See also

Clone this wiki locally