Repository navigation
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.
The CI workflow (ci.yml) runs on every pull request and every change to main, on Windows:
-
cargo clippywith warnings treated as errors cargo test- a release build
- 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.
-
Open a version pull request. Set
versioninCargo.toml, and inCHANGELOG.mdturn theUnreleasedsection into## [vX.Y.Z] - date, with its link at the bottom of the file. Build once so thatCargo.lockfollows. -
Merge it.
-
Tag
mainand 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:
- refuses a tag that does not match the version in
Cargo.toml; - runs the tests and builds the program;
- packages it with
tools/package.ps1; - 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.
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.
| 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 |
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.
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 openacmipwsh tools/package.ps1The 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.
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.mdand_Footer.mdappear on every page. A new page needs a line in the sidebar and onHome.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.rsorassets/threats.toml, run:python tools/build_wiki_tables.py
The workflow refuses to publish while a generated table is out of date.
OpenACMI is free and open source under the MIT licence. Download · Source · Report a problem
These pages are kept in docs/wiki of the repository. To change one, change it there: edits made here are overwritten.
Getting started
Using the viewer
- The 3D view
- Cameras and controls
- Timeline and playback
- Selecting objects
- Telemetry panel
- Graphs and Compare
- Cockpit view and HUD
- Event log and Session panels
- Real-time telemetry
- Editing and saving
Threat rings
Customising
Reference
- ACMI file format
- OpenACMI extensions
- Supported simulators
- Command-line options
- Troubleshooting and FAQ
For developers