check / lint (push) Waiting to run
Gitea evaluates a job's `if` on the runner, so with no macOS runner the gated job sat queued forever and kept every run in progress. Make it a separate workflow_dispatch-only workflow until a macOS runner exists. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
30 lines
891 B
YAML
30 lines
891 B
YAML
name: check
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# Runs on the existing Linux runners. Wakeful links AppKit, IOKit and Carbon,
|
|
# so this can parse the Swift but not compile it; see macos.yaml.
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: swift:6.3
|
|
steps:
|
|
# actions/checkout needs Node, which the Swift image doesn't have.
|
|
- name: Checkout
|
|
env:
|
|
TOKEN: ${{ gitea.token }}
|
|
run: |
|
|
git config --global --add safe.directory "$PWD"
|
|
git init -q .
|
|
auth=$(printf 'x-access-token:%s' "$TOKEN" | base64 | tr -d '\n')
|
|
git -c http.extraHeader="Authorization: Basic $auth" \
|
|
fetch -q --depth=1 "${{ gitea.server_url }}/${{ gitea.repository }}.git" "${{ gitea.sha }}"
|
|
git checkout -q FETCH_HEAD
|
|
git log -1 --oneline
|
|
|
|
- name: Check
|
|
run: scripts/check.sh
|