diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 30b9b45..0a4f2e6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -106,5 +106,6 @@ jobs: - name: Draft Gitea release if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') env: - GITEA_RELEASE_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }} + # Gitea refuses secret names starting with GITEA_ or GITHUB_. + GITEA_RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: scripts/gitea-release.sh dist/release diff --git a/docs/ci.md b/docs/ci.md index 11effd7..59cd4f7 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -68,7 +68,10 @@ the separate `release.yml` workflow below. Newer `gitea-runner` (2.0+) supports the workflow-level timeout. Check the installed runner's configuration rather than assuming the YAML - timeout is enforced. + timeout is enforced. The Gitea server also stops any task running + longer than `ENDLESS_TASK_TIMEOUT` (default `3h`, `[actions]` in + `app.ini`), whatever the runner or the workflow say; raise it above the + longest job (see the release runner below). The workflow shares the repository's local system-dependencies action with GitHub CI and bootstraps rustup if absent, then installs the toolchain and @@ -134,10 +137,17 @@ runner: ``` The workflow requests eight hours; older act_runner ignores job-level -timeouts, so the runner limit is required. Keep sufficient RAM/swap and -free disk for all package builds and their Docker caches. Builds run -sequentially and limit Cargo to one job. The workflow never prunes shared -Docker state or creates host swap. The token and optional Android signing +timeouts, so the runner limit is required. The server's own limit must +allow it too, or Gitea stops the release after three hours: + +```ini +[actions] +ENDLESS_TASK_TIMEOUT = 9h +``` + +Keep sufficient RAM/swap and free disk for all package builds and their +Docker caches. Builds run sequentially and limit Cargo to one job. The +workflow never prunes shared Docker state or creates host swap. The token and optional Android signing secrets are documented in [Gitea releases](release.md#gitea-releases). Gitea packages pass the shared Linux checks but do not gain native Windows, diff --git a/docs/release.md b/docs/release.md index 6886e48..a5a694c 100644 --- a/docs/release.md +++ b/docs/release.md @@ -26,8 +26,10 @@ checks in GitHub or separately before accepting a release. combined `SHA256SUMS` are attached to a **draft** Gitea release. Review, sign checksums and publish manually, just as on GitHub. -Set the repository secret `GITEA_RELEASE_TOKEN` to a Gitea personal access -token with `write:repository`, limited to this repository where supported. +Set the repository secret `RELEASE_TOKEN` to a Gitea personal access +token with `write:repository`, limited to this repository where supported +(Gitea refuses secret names that start with `GITEA_` or `GITHUB_`; the +workflow hands it to the script as `GITEA_RELEASE_TOKEN`). The token's account must be able to write releases. The publishing script uses the runner's `GITHUB_SERVER_URL` and `GITHUB_REPOSITORY`; it requires HTTPS and never uses GitHub's release API. On this instance the server URL