2.4 KiB
Releasing Moli
The release workflow builds and publishes four native archives:
| System | Rust target | Archive |
|---|---|---|
| Linux x86_64 | x86_64-unknown-linux-gnu |
.tar.gz |
| macOS Intel | x86_64-apple-darwin |
.tar.gz |
| macOS Apple Silicon | aarch64-apple-darwin |
.tar.gz |
| Windows x86_64 | x86_64-pc-windows-msvc |
.zip |
Every archive contains the moli executable, project licenses, README,
version marker, and third-party license notices. A SHA-256 checksum is
published beside each archive.
Each artifact is built on its native GitHub-hosted runner. The packager strips
only a staging copy, leaving the binary under target/release unchanged for
debugging. Because stripping invalidates a Mach-O signature, macOS staging
binaries are ad-hoc signed again and verified before packaging. They are not
Developer ID signed or notarized. Windows executables are not Authenticode
signed. The Windows build disables the default jemalloc feature and uses the
system allocator because upstream treats the Windows/MSVC combination as
untested.
Prepare the release
-
Update
versioninmoli/Cargo.tomland refreshCargo.lock. -
Commit and push those changes to the ref that should be released.
-
Optionally build the package for your current operating system locally.
Linux or macOS:
scripts/release.sh --version 0.1.1Windows PowerShell:
python scripts/release.py --version 0.1.1 --no-default-featuresArtifacts are written to
dist/. The packager rejects a version that does not matchmoli/Cargo.toml, checks the native Rust target, strips the staged executable, and verifies the packaged binary's reported version.
Trigger GitHub Release
- Open Actions in GitHub and choose the Release workflow.
- Select Run workflow and choose the Git ref containing the release.
- Enter the version (with or without a leading
v). - Choose whether the release should be a prerelease or a draft, then run it.
The workflow validates the selected commit, builds all four native artifacts
in parallel, verifies every checksum, creates the corresponding vX.Y.Z tag,
generates release notes, and uploads all archives and checksums. It stops
without creating a release if any platform fails, if the requested version
does not match the manifest, or if the tag already exists.