ci: build on GitHub via the mirror, switchable with BUILD_ON #5

Merged
jcoffey-dev merged 1 commits from ci/build-on-github into main 2026-09-30 06:51:41 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 122f737c0b ci: build on GitHub from the Gitea push mirror, switched by BUILD_ON
ci / shellcheck (pull_request) Successful in 4s
ci / github (pull_request) Skipped
Gitea stays the source of truth and push-mirrors this repository to
GitHub. With the org variable BUILD_ON=github (set on both forges), the
jobs in .gitea/workflows/ci.yml skip and .github/workflows/ci.yml does
the same work on GitHub Actions, then reports one commit status back to
Gitea ("github/ci (branch)" or "github/ci (tag)"). A new `github` job in
the Gitea workflow waits for that status and passes or fails with it, so
the Gitea run still carries the real result.

With BUILD_ON unset nothing changes: every GitHub job skips and Gitea
builds as before. That is also the fallback if GitHub is unavailable.

The GitHub-era workflows are replaced by the single ci.yml, which mirrors
the Gitea one job for job. Everything it uses is pinned to a full SHA.
2026-09-29 23:07:58 -07:00