Files
ashlar/.gitea/workflows/ashlar-checks.yaml
T
claudeandClaude Opus 5.5 50ab15cbe9
Ashlar checks / tooling (push) Successful in 40s
Add Gitea CI so upstream's GitHub workflows stop running
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>
2026-11-09 19:59:50 -05:00

51 lines
1.5 KiB
YAML

# 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"