ci: target Gitea Ubuntu and native Apple Silicon runners
iOS validation / simulator (push) Failing after 3s
Android validation / emulator (35) (push) Failing after 9s
Android validation / emulator (37.0) (push) Failing after 9s
Android validation / build (push) Successful in 3m40s

Move workflows into Gitea's workflow directory and use the supplied ubuntu-latest and macos-arm64 labels. Provision the Android SDK, require KVM without changing host permissions, support SHA-256 checkout and Gitea artifact uploads, and isolate scratch output on persistent runners. Skip untrusted fork PRs and keep release builds unsigned because Gitea ignores GitHub environment approval gates. Local workflow lint, repository invariants, ten preflight regressions, eight evidence-verifier tests, inline shell checks, scratch cleanup and SHA-256 fetch checks pass; remote runner execution remains unverified.
This commit is contained in:
Yuvomi Mobile Contributors committed 2026-10-21 07:40:19 +02:00
1 parent 2d12491516
commit 11bf4ca620
16 files changed
+442 -192

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env python3
"""Lint Gitea workflows using actionlint's GitHub-compatible grammar.
Only the forge-specific absolute action URL syntax is normalized for actionlint;
the real URLs/pins and runner assignments are checked by check-repository.py.
"""
from pathlib import Path
import re
import subprocess
import sys
import tempfile
ROOT = Path(__file__).resolve().parents[1]
actionlint = sys.argv[1] if len(sys.argv) > 1 else "actionlint"
base = Path("/tmp/opencode") if Path("/tmp/opencode").exists() else None
with tempfile.TemporaryDirectory(prefix="yuvomi-workflow-lint-", dir=base) as temporary:
config = Path(temporary) / "actionlint.yaml"
config.write_text("self-hosted-runner:\n labels: [macos-arm64]\n")
workflows = sorted((ROOT / ".gitea/workflows").glob("*.yml"))
if not workflows:
raise SystemExit("No Gitea workflows found")
for path in workflows:
normalized = re.sub(r"(uses:\s*)https://(?:github.com|gitea.com)/", r"\1", path.read_text())
subprocess.run([actionlint, "-config-file", str(config), "-stdin-filename", str(path), "-"],
input=normalized, text=True, check=True, cwd=ROOT)
print(f"actionlint: {len(workflows)} Gitea workflows passed (action URL syntax normalized).")