Repository navigation
Releasing
A v* tag builds the signed Windows installer and the Linux AppImage, waits for you to sign the
Linux checksums (tools/sign-release), then publishes them on this repo (darkharasho/axidps)
with the workflow's own token. A version with a pre-release part (v1.1.0-rc.1) is published as
a GitHub prerelease, and only launchers on a pre-release or with Test builds on take it; a
plain version (v1.0.0) goes to everyone and becomes the repo's Latest release.
The release notes come from the tag's section of RELEASE_NOTES.md (Version v1.0.0 — <date>
up to the next Version v line). A stable tag fails at once without one. A pre-release without
one gets "Not yet checked in game on Windows." Once a stable release is published, the
discord job posts its notes to the Axi apps' Discord channel; pre-releases aren't posted.
- The DLL's game-facing crates live in the private repo
darkharasho/axidps-internal, checked out atprivate/(gitignored here). Create a read-only deploy key on that repo and store its private half as the secretPRIVATE_DEPLOY_KEYin this repo'sreleaseenvironment (Settings, Environments). Limit the environment's deployment branches tomainand tagsv*, so only those runs can fetch the private crates. - For the
mirrorjob while it lasts (see below): a fine-grained personal access token limited toaxidps-releaseswith Contents: read and write, as the secretRELEASES_TOKEN. - Set the Windows signing secrets (Azure Artifact Signing; the script reads the client secret from
1Password and never prints it):
~/.claude/templates/windows-signing/set-azure-signing-secrets.sh darkharasho/axidps - Make the key that signs
SHA256SUMSfor Linux updates (once; a second key would strand every client built with the first):tools/sign-release --keygen. It stores the private key in 1Password (op://Private/axidps SHA256SUMS signing key/password) and prints only the public key. Put that inSUMS_PUBLIC_KEYincrates/axidps-app/src/update.rsand drop itsTODO(sums-key)marker; tag builds fail while the marker is there. The private key never goes to CI or a GitHub secret. - Set
PUBLIC_CHECK_PATTERNS(one regex per line: names and addresses that must never appear in this repo) as a secret, fortools/public-check. - For the
discordjob: the Axi apps' Discord webhook as the secretDISCORD_WEBHOOK_URL(copied from AxiOM'sDISCORD_WEBHOOK_URLvariable without printing it). It's a secret here, not a variable as in the other Axi repos, because a variable's value shows in the public run log. Without it,discordwarns and posts nothing.
The DLL is built from private/ (its own Cargo workspace, depending on this repo's crates by
path). Public workflows fetch it at the commit pinned in .github/private-ref, only on pushes to
main, tags and manual runs, never for pull requests. Those jobs (dll-check in ci.yml, dll in
release.yml) never cache a target dir and send compiler output to a file that is never printed,
because it would quote private source. When a DLL build fails there, reproduce it locally.
After changing the private crates: push private/, then run tools/bump-private here and commit
.github/private-ref.
-
Bump the version. If the private crates changed, run
tools/bump-private. Commit and push. -
git tag v<x.y.z> && git push origin v<x.y.z>. The version is the tag withoutvand must be valid semver. -
The
Releaseworkflow first creates a draft release, then builds the DLL and signs it (sign-dll), then builds the signed Windows installer (every.exeand the DLL must verify asValid, includinguninstall.exe, which NSIS signs as it builds the installer and the job checks by installing silently into a temp folder) and the AppImage side by side.appimage-checkthen runslddon the AppImage's programs in a bareubuntu:24.04container (on a GitHub-hosted runner, whatever built it). Any library or glibc version a plain system lacks fails the release. That is also the glibc floor: thelinuxjob builds on Ubuntu 24.04, so the AppImage needs glibc 2.39 (SteamOS 3.7, Ubuntu 24.04, Debian 13 and newer). Don't move it toubuntu-latest(26.04, glibc 2.43) or a newer system. The jobs hand files to each other through that draft rather than workflow artifacts, so the account's shared artifact quota can't block a release. If any job fails, the draft stays unpublished (rerunning the failed jobs reuses it). -
When all are green,
finalizeaddsSHA256SUMSand removes the hand-off DLLs, leaving the installer, the AppImage andSHA256SUMS.publishthen stops with "waiting for its signature" until step 5; onceSHA256SUMS.sigis there and verifies underSUMS_PUBLIC_KEY, it takes the release out of draft.mirrorthen copies it to the olddarkharasho/axidps-releases(see below).publishalso waits for thetestsjob, which runsci.yml's tests (Linux and Windows) on the tagged commit alongside the builds; if they fail, the draft stays unpublished. Fix the tests, bump the version and tag again, or reruntests(thenpublish) if the failure was flaky. Edit the notes once you've checked the build in game, on both repos whilemirrorruns (it copies the notes as they are at publish time). For a stable release, editRELEASE_NOTES.mdbefore tagging instead:discordposts the notes as they are at publish time. -
Sign it:
tools/sign-release v<x.y.z>(needsgh,opsigned in,openssl,jq). It downloadsSHA256SUMSand the files it lists from the draft, checks them withsha256sum -c, signsSHA256SUMSwith the key read byop read(piped to openssl, never written to disk), checks the signature againstSUMS_PUBLIC_KEY, uploadsSHA256SUMS.sig(the 64-byte Ed25519 signature, base64, one line) and reruns the Release run's failed jobs, sopublishgoes ahead. You can sign as soon asfinalizeis done; a run still going finds the signature when it reachespublish. SetAXIDPS_SUMS_KEY_REFor pass--key-refif the key lives elsewhere in 1Password.Nothing is published unsigned, for Windows either, because Linux clients skip a release without
SHA256SUMS.sigand stay on the newest signed one (releases rc.32 to rc.51 went out unsigned, so Linux clients on rc.31 saw none of them). Builds up to rc.51 instead retried an unsigned newest release every 6 hours ("Download failed its check; will retry"); the next signed release reaches them as an ordinary update.
A tag build takes about 7 to 10 minutes when the overlay host (Servo) hasn't changed. GitHub only
lets a tag's run restore caches saved on main or on the tag itself, so cache-warm.yml builds
on every push to main what a release needs: the app's build cache, the overlay host's build
cache, and the overlay host binary itself, keyed by its sources (tools/overlay-host-key). A
release whose overlay host matches restores that binary and skips Servo entirely; one that
changed it builds it from the restored cache. Tag the commit after cache-warm's run for it
finishes, or the release builds the overlay host itself. CI's Rust test and check jobs aren't
cached (their 2.4 GB pushed the overlay host's caches out). Release and pull request runs only
restore caches; only main saves them, so they stay under the repo's 10 GB cache limit, and
prune-caches.yml deletes the ones a newer save replaced after each CI and cache-warm run
(tools/prune-caches). Past the limit GitHub evicts the least recently used, which was the
Windows overlay host's build cache: a cold Servo build takes ~35 minutes against ~10 warm. Bump
SALT in tools/overlay-host-key when the overlay host's build setup changes in a way its files
don't show (LLVM, MozTools, the runner image). The dll job builds without a cache every time
(see above).
The linux job runs on GitHub's Ubuntu 24.04. A runner with a glibc newer than 2.39 fails
appimage-check.
After publish, check the release by hand:
gh release download v<x.y.z> -R darkharasho/axidps -D /tmp/axidps-v<x.y.z>
cd /tmp/axidps-v<x.y.z> && sha256sum -c SHA256SUMS
The windows job's "Verify everything is signed" step prints each file's signature status
(Valid), never the signer's name: run logs are public.
To test the build without publishing, run the workflow manually (Actions, Release, Run workflow)
with a version such as 0.0.0-ci.1. It builds and verifies everything into a draft named
test-<run id> on this repo and never publishes it. Delete that draft after checking it:
gh release delete test-<run id> -R darkharasho/axidps -y (a draft has no tag, so
don't pass --cleanup-tag).
Releases up to rc.22 were published to darkharasho/axidps-releases, and builds up to rc.22 and
AxiOM up to v0.7.8 look for updates only there. The mirror job copies each release there until
everyone has a build and an AxiOM that read this repo. Then delete the mirror job and
MIRROR_REPO from release.yml, delete the RELEASES_TOKEN secret and its token, and archive
axidps-releases.
The AppImage ships the overlay host and the DLL. Under Steam, set this launch option so the
game loads the d3d11.dll in its folder:
WINEDLLOVERRIDES="d3d11=n,b" %command%
The overlay host draws through a GL window that Wayland won't let it hide. On KDE the launcher
adds the KWin rule axidps-overlay-hidden to kwinrulesrc at each start when kwriteconfig6 is
installed (the same rule apps/axidps-overlay/install.sh writes; it only writes when something is
missing or changed, then asks KWin to reload), which keeps that window off the taskbar, the pager
and Alt+Tab. Known gap: GNOME and other desktops have no such rule, so a window titled "axidps
overlay host" shows there.
The launcher logs to ~/.config/axidps/axidps.log (%APPDATA%\axidps\axidps.log on Windows),
rotated to axidps.log.1 at 4 MB. Started from a terminal on Linux, it prints there instead.