From 0d7051d88e5ac8aa9835fbcdbbd38fa0e24396ee Mon Sep 17 00:00:00 2001 From: donnyjang Date: Thu, 15 Oct 2026 10:56:50 -0700 Subject: [PATCH] README: how to release (tag, push, wait) and how a consumer fetches the assets Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 47da712..7f652c7 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,40 @@ Windows VM: it has no nested virtualisation). From a clean clone on any Linux bo number belongs to the pinned base image). `engine.json` is written the same way as on Windows. A `docker build` that fails the gate leaves nothing in `out/`. +## Release + +`.gitea/workflows/release.yml`. Every push and pull request runs the three builds and their gates +(Windows on the self-hosted `unity-windows` runner, Linux and Android in Docker on `ubuntu-latest`); +nothing is published. A tag releases: + +```bash +# CHANGELOG.md: rename "## Unreleased" to "## vX.Y.Z — " (the section is the release body), commit +git tag vX.Y.Z && git push gitea main vX.Y.Z +``` + +Then wait for the run (`Actions` tab). The release named after the tag appears only when every +build passed its gate, every platform's `engine.json` names the tag and agrees on protocol and +capabilities, and `ygol_engine_version()` on the Windows DLL returns the tag. A tag whose release +already exists is refused: a bad release gets a new patch tag, never a re-upload. + +The Windows runner needs premake 5.0.0-beta8 at `C:\premake\premake5.exe`, VS 2022 Build Tools with +the C++ workload, Python 3 and `tar.exe` (Windows 10+); its checkout is +`C:\gitea-runner\checkout\yugioh-legacy-engine` (no spaces) and the Windows bundle is staged under +`C:\gitea-runner\release-out\ygol-engine\\` for the last job to attach. The release token is +the run's own `GITHUB_TOKEN`. + +### Fetching a release + +`https://gitea.dev.blueoceanswim.com/donny/yugioh-legacy-engine/releases/download//`: + +| Asset | Contents | +|---|---| +| `ygol-engine-win64.zip` | `ygol-engine.dll`, `ygol-engine.pdb`, `engine.json` | +| `ygol-engine-linux-x64.tar.gz` | `libygol-engine.so`, `engine.json` | +| `ygoserver-linux-x64.tar.gz` | `ygoserver` (the plain server executable), `engine.json` | +| `ygol-engine-android-arm64.tar.gz` | `libygol-engine.so`, `engine.json` | +| `engine.json` | `{ version, exports, protocol, capabilities }`; `exports` is the Windows count, the rest is identical in every bundle | + ## Line endings The repo stores LF (`core.autocrlf=false` when importing; `git archive` on a machine with