Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Packaging and releases

GitHub Actions tests, builds, attests, and publishes versioned releases. Hosted builds use pinned RimRef 1.7.5000-unstable reference assemblies. Local release validation uses installed RimWorld 1.7 assemblies for native binding and IL checks. Start with Build from source for the toolchain and checks.

Versioned GitHub releases

Prepare a version

  1. Finish the dated CHANGELOG.md entry. It supplies the release description.

  2. Run just release-bump-version 0.1.0, then just generate-all. Review and commit the changes on main.

  3. Tag the commit v0.1.0. HEAD must have exactly one release version tag, matching the product versions and any VERSION override.

  4. Push main, then the tag:

    git push origin main
    git push origin v0.1.0
    

The Release workflow requires the tagged commit to belong to origin/main. It resolves one commit, runs the reusable test workflow against it, and then builds the mod ZIP and Arch, Debian, and Fedora packages. Executables are distributed as distro packages; the mod ZIP supports manual game installation. Separate native amd64 and arm64 jobs build independent slopcar Debian/Fedora packages; the amd64 job also builds its Arch package. The final bundle includes all launcher packages, the standalone install.py installer, and their checksums. The sidecar host-library baseline is Debian 13, using the existing Trixie builder for DEBs and native Fedora/Arch builders for those formats. Native packages compile in their distribution containers. The build consumes committed artwork and checks protocol outputs, staged notices, and the documentation book. Run generators and review their changes before tagging; CI does not regenerate artwork with a different host renderer.

GitHub signs provenance attestations for the packages, SHA256SUMS, release notes, and release.json. The manifest records the commit, version, and file hashes. The workflow then publishes and attests the sidecar image for linux/amd64 and linux/arm64.

A separate publication job downloads the exact build artifact by ID, checks its manifest and checksums, and verifies each file’s attestation against the source commit, tag, and release workflow. It creates the GitHub release without rebuilding. A failed test, package build, image build, or attestation prevents GitHub release publication. The image may already exist if a later step fails.

Existing GitHub releases are never replaced and missing remote tags are never recreated by CI. Retry a failed tag run from the Actions page. If a release exists with incomplete assets, inspect and repair it explicitly.

Preview without publication

Run Release manually from the Actions page, or push the release-ci branch. Previews run tests and the same packaging and attestation path, using a version such as 0.0.7-preview-0123456789ab. They upload a release-<version> workflow artifact retained for 30 days. They do not publish GitHub releases or sidecar images. Manual runs are previews even when a tag is selected.

Verify a download

Install GitHub CLI, download the desired package and SHA256SUMS, then verify its provenance against this repository and workflow:

gh attestation verify slopworld-0.1.0-mod.zip \
  --repo droserasprout/slopworld \
  --signer-workflow droserasprout/slopworld/.github/workflows/release.yml \
  --source-ref refs/tags/v0.1.0 \
  --deny-self-hosted-runners

Add --source-digest <commit> to require a particular source commit. After downloading all packages, run sha256sum --check SHA256SUMS as an additional integrity check. Checksums alone do not establish who built a file.

The sidecar’s provenance uses .github/workflows/image.yml as its signer:

gh attestation verify oci://ghcr.io/droserasprout/slopcar:0.1.0 \
  --repo droserasprout/slopworld \
  --signer-workflow droserasprout/slopworld/.github/workflows/image.yml \
  --source-ref refs/tags/v0.1.0 \
  --deny-self-hosted-runners

These attestations identify the build’s source and workflow. They do not promise byte-for-byte reproducibility: distribution repositories and some build images still receive updates.

Local release packages

just release-package retains the full local generation, validation, and packaging flow. It requires a clean tagged commit on main (or a detached tagged commit belonging to main), an x86_64 Linux build host, and Podman. Set CONTAINER=docker to use Docker. Both local release commands build amd64 and arm64 sidecar packages, so the x86_64 host also needs working arm64 container emulation; see architecture requirements. All native packages build in containers. Install mdBook for book validation. The installed game supplies the mod references. Output goes to dist/0.1.0/; set RELEASE_DIR to override it.

just release-publish also builds locally and publishes through your authenticated GitHub CLI. It does not produce hosted-build attestations. Prefer pushing a release tag to use the verifiable CI flow. Local commands never commit changes or move tags.

Distribution packages

These commands compile once and build separate slopworld, slopd, and slopctl packages without publishing or installing them. slopcar remains independently packaged. Use just package-product debian slopctl (or another distro/product) to build only one package. Server and CLI packaging do not build the mod. Each needs the build prerequisites and its distribution’s native packaging tools. The installed game supplies compilation references; set MANAGED to select a separate assembly directory. Commit changes before packaging to record the source revision. VERSION overrides the build version.

Build Debian/Ubuntu and Fedora packages on the oldest distribution release you intend to support; their library requirements come from the build host.

Arch packages

Install base-devel and bubblewrap on Arch, then run:

just package-arch

The packages go to dist/arch/; override with ARCH_DIR.

Debian packages

Install libasound2-dev and dpkg-dev on Debian or Ubuntu, then run:

just package-debian

The packages go to dist/debian/; override with DEB_DIR.

Fedora packages

Install alsa-lib-devel, rpm-build, and redhat-rpm-config on Fedora, then run:

just package-fedora

The packages go to dist/fedora/; override with RPM_DIR. Follow Linux installation to install a package, attach the mod, and start the daemon.