CI off: checks run by hand, only package builds run by themselves
The checks no longer run on pushes, pull requests or a schedule, on GitHub or Gitea: ci.yml, audit.yml, fuzz.yml and Gitea's ci.yml run by hand only (Run workflow). Only the package builds still run by themselves, on v* tags (release.yml, docker.yml, Gitea's release.yml), and the release workflows no longer run the checks first: GitHub's drops its checks and Windows test jobs, Gitea's the shared checks step. The docs say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
This commit is contained in:
9 files changed
+32
-83
No files matched your search
+3
-3
@@ -3,8 +3,8 @@
|
||||
Every platform has installable packages. The release workflow builds them,
|
||||
and the Dockerfiles in `docker/` build the same kinds of packages on any
|
||||
machine with Docker. Both use `scripts/package.sh`, so file names and
|
||||
contents match. Regular CI (`ci.yml`, every push and PR) only runs the fast
|
||||
checks and builds no packages.
|
||||
contents match. CI (`ci.yml`, run by hand only) runs the checks and builds
|
||||
no packages; the release workflow builds packages without running them.
|
||||
|
||||
The packages hold the app, Voelin. The gateway `tsgw` runs on servers and is
|
||||
packaged for Linux only, separately. `voelinctl` is a development tool and is
|
||||
@@ -43,7 +43,7 @@ and [runner setup](ci.md#gitea-release-runner) for host requirements.
|
||||
|
||||
- **A version tag** `v*` (`git tag -s v0.2.0 && git push origin v0.2.0`): the
|
||||
packages and a `SHA256SUMS` are attached to a **draft** GitHub release once
|
||||
all checks pass (the same checks as CI, plus the Windows tests); review and
|
||||
every package is built (no checks run; run CI by hand first); review and
|
||||
publish it by hand ([release.md](release.md#checklist)).
|
||||
- **By hand**, for a build to test without a release: Actions → Release → Run
|
||||
workflow (or `gh workflow run release.yml --ref <branch>`). The packages are
|
||||
|
||||
+14
-12
@@ -1,9 +1,12 @@
|
||||
# CI
|
||||
|
||||
GitHub Actions runs `.github/workflows/ci.yml`, including Linux checks,
|
||||
Windows and Android Clippy, and TeamSpeak integration smoke tests. Both
|
||||
GitHub and Gitea provide release packaging; see [release.md](release.md) and
|
||||
[building.md](building.md).
|
||||
Windows and Android Clippy, and TeamSpeak integration smoke tests. Automatic
|
||||
runs are off: CI, the dependency audit and fuzzing run only by hand
|
||||
(Actions → the workflow → Run workflow; the same on Gitea). Only the package
|
||||
builds run by themselves, on `v*` tags, and they run none of these checks.
|
||||
Both GitHub and Gitea provide release packaging; see [release.md](release.md)
|
||||
and [building.md](building.md).
|
||||
|
||||
Cargo builds use one job in CI so the generated UI library and its test
|
||||
target do not compile concurrently. The release profile uses ThinLTO and
|
||||
@@ -15,10 +18,8 @@ runtime performance has not been benchmarked for this change.
|
||||
|
||||
## Gitea Actions
|
||||
|
||||
`.gitea/workflows/ci.yml` runs a single Linux job on pushes to `main` and
|
||||
`master`, pull requests, and manual dispatch. Documentation-only changes
|
||||
are excluded; `THIRD_PARTY_NOTICES.md` is not excluded because the app embeds
|
||||
it and CI verifies it.
|
||||
`.gitea/workflows/ci.yml` runs a single Linux job when dispatched by hand
|
||||
(automatic runs on pushes and pull requests are off).
|
||||
|
||||
The job runs:
|
||||
|
||||
@@ -147,10 +148,11 @@ 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).
|
||||
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,
|
||||
Android Clippy or TS3/TS6 smoke-test acceptance from a successful release
|
||||
job. Full hosted builds and a draft upload must be verified on the registered
|
||||
The Gitea release job builds packages only: it runs no formatting, Clippy,
|
||||
tests, native Windows, Android Clippy or TS3/TS6 smoke tests; run CI by hand
|
||||
for those. Full hosted builds and a draft upload must be verified on the registered
|
||||
runner; local shell/API fixtures do not establish deployment acceptance.
|
||||
+6
-7
@@ -13,13 +13,12 @@ requirements differ.
|
||||
|
||||
`.gitea/workflows/release.yml` builds Linux tarballs and `.deb` files, Windows
|
||||
zip and NSIS installer (MinGW cross-build), Android debug APK (arm64-v8a and
|
||||
x86_64), a Flatpak bundle, and the gateway container image. It shares Linux
|
||||
checks with Gitea CI, and reuses the Dockerfiles and `scripts/package.sh`.
|
||||
Unlike GitHub's release pipeline, it does not run native Windows tests,
|
||||
Android Clippy, TeamSpeak smoke tests or browser interop; complete those
|
||||
checks in GitHub or separately before accepting a release.
|
||||
x86_64), a Flatpak bundle, and the gateway container image. It reuses the
|
||||
Dockerfiles and `scripts/package.sh`, and builds packages only: it runs none
|
||||
of the checks (formatting, Clippy, tests, TeamSpeak smoke tests); run CI by
|
||||
hand for those before accepting a release.
|
||||
|
||||
- **Manual dispatch:** after checks and all builds pass, download the
|
||||
- **Manual dispatch:** after all builds pass, download the
|
||||
`voelin-packages` artifact from the run. Manual runs never publish a draft,
|
||||
even when dispatched against a tag.
|
||||
- **Push a `v*` tag:** the same artifact is uploaded, then packages and a
|
||||
@@ -218,7 +217,7 @@ Release:
|
||||
|
||||
7. Tag `v<version>` (signed) on the release commit and push it.
|
||||
8. The tag's release workflow (`release.yml`, [building.md](building.md))
|
||||
runs the checks and the Windows tests and builds every package: the app's
|
||||
builds every package (it runs no checks: run CI by hand first): the app's
|
||||
Linux tarball and `.deb`, Flatpak bundle, Windows zip and installer and
|
||||
Android APKs (signed when the secrets are set), and the gateway's Linux
|
||||
tarball, `.deb` and image; its `release` job attaches them with a
|
||||
|
||||
Reference in new issue
Block a user