Build and release
How a release tag becomes five archives with checksums, and how to build one locally.
Toolchain
The Rust toolchain is pinned in rust-toolchain.toml (channel 1.100.1). The SDK's minimum supported version is lower (1.88) and is checked separately.
Releases
Pushing a SemVer tag (vX.Y.Z, or vX.Y.Z-rc.1 for a pre-release) builds the release. The tag's version must equal [workspace.package] version in Cargo.toml: bump the version in a commit first, then tag it. The scientific suites run first, and archives are published only if they pass.
Each release has five archives and one checksum file:
| Target | Archive |
|---|---|
| Windows x86-64 | cohortix-<version>-x86_64-pc-windows-msvc.zip |
| Linux x86-64 | cohortix-<version>-x86_64-unknown-linux-musl.tar.gz |
| Linux ARM64 | cohortix-<version>-aarch64-unknown-linux-musl.tar.gz |
| macOS ARM64 | cohortix-<version>-aarch64-apple-darwin.tar.gz |
| macOS x86-64 | cohortix-<version>-x86_64-apple-darwin.tar.gz |
Each archive holds cohortix, chx, cohortix-data, LICENSE-MIT, LICENSE-APACHE and README.md. Linux binaries are statically linked with musl, Windows binaries link the C runtime statically, and macOS binaries link only the system libraries. --version --json records the libc and the linkage.
Checksums
Checksums are BLAKE3, in b3sum format:
b3sum --check cohortix-<version>-checksums.b3Smoke test
After building, ci/package.sh checks the checksum, extracts the archive into a fresh folder and runs each binary with --version --json. It checks the product name, version, binary name and target, static linkage on Linux and Windows, that no library outside the system is linked, and the licence files.
Build an archive locally
ci/package.sh --tag v0.1.0-rc.1 --out "$(mktemp -d)"
ci/checksums.sh v0.1.0-rc.1 DIST_DIR--out must lie outside the repository. ci/checksums.sh needs all five archives. Nothing is pushed or tagged by these scripts.
In this version
No release tag exists yet, so the changelog is empty and 0.1 is built from source.