README: how to release (tag, push, wait) and how a consumer fetches the assets
Release / linux (push) Failing after 1m41s
Release / android (push) Failing after 1m43s
Release / windows (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / attach-windows (push) Canceled after 0s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-15 10:56:50 -07:00
1 parent 09b85f0f3c
commit 0d7051d88e
1 file changed
+34
+34
View File
@@ -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 — <date>" (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\<tag>\` 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/<tag>/<asset>`:
| 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