Add Gitea CI so upstream's GitHub workflows stop running
Ashlar checks / tooling (push) Successful in 40s

Gitea only falls back to .github/workflows when a commit has no
.gitea/workflows. Adding a small Linux-only workflow here stops
upstream OpenMW's macOS, Windows and full Ubuntu workflows from
queueing on the shared runner, without editing upstream's files.

The workflow checks the Docker build scripts on pushes to main that
touch docker/ or the workflow itself, with a concurrency group and a
10-minute timeout. ASHLAR.md notes that refs without .gitea/workflows,
such as upstream tags, still fall back to .github.

Refs DevOps/software-infrastructure#34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 19:59:50 -05:00
co-authored by Claude Opus 5.5
parent d6eb1a47c3
commit 50ab15cbe9
2 changed files with 59 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
# Ashlar's CI on eom.dev's Gitea runner.
#
# Gitea runs workflows from .gitea/workflows when that directory exists in the
# pushed commit, and only falls back to .github/workflows when it doesn't. This
# file therefore stops upstream OpenMW's .github workflows (macOS, Windows and a
# full Ubuntu build) from running here, while leaving them untouched so upstream
# merges stay clean.
#
# Caveat: a ref whose commit has no .gitea/workflows, such as a freshly pushed
# upstream tag, still falls back to .github/workflows. See ASHLAR.md.
#
# The shared runner can't yet build the whole engine, so this workflow only
# runs cheap checks on Ashlar's own build tooling. A full build and test job is
# tracked in Gaming/ashlar#4 and DevOps/software-infrastructure#58 (G10).
name: Ashlar checks
on:
push:
branches: [main]
paths:
- ".gitea/workflows/**"
- "docker/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tooling:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check build script syntax
run: |
status=0
for script in docker/*.sh; do
if bash -n "$script"; then
echo "ok $script"
else
echo "FAIL $script"
status=1
fi
done
exit "$status"
+9 -1
View File
@@ -57,6 +57,14 @@ This uses a virtual display and software rendering, then saves a screenshot to
- `tes3mp-corescripts` is `https://github.com/TES3MP/CoreScripts.git`.
Ashlar's `main` is based on OpenMW's `master`. Upstream's tags are kept for
reference. The `vendor/tes3mp-0.8.1` and `vendor/tes3mp-corescripts-0.8.1`
reference.
## CI
Ashlar's CI is `.gitea/workflows/`. Gitea ignores upstream's `.github/workflows`
only for commits that contain `.gitea/workflows`, so pushing a ref that doesn't,
such as a new upstream tag, would queue upstream's macOS and Windows jobs on the
shared runner. Don't push upstream tags or branches to `origin` until that's
handled. The `vendor/tes3mp-0.8.1` and `vendor/tes3mp-corescripts-0.8.1`
branches hold TES3MP's unmodified source for reference. Multiplayer is currently
out of scope.