CI: make builds work on China-based self-hosted Gitea runner
CI / Flutter (analyze, test, Windows build) (push) Failing after 1m50s
CI / Server tests (optional) (push) Failing after 41s

The self-hosted Windows runner can't reach github.com (GFW), so the previous
workflow failed cloning actions/checkout and would also fail downloading the
Flutter SDK and the sqlite3 native binary.

- Vendor the official, SHA-256-verified sqlite3 binaries under vendor/sqlite3/
  and select them via pubspec hooks.user_defines (source: test-sqlite3). Builds
  and tests now run fully offline — no GitHub download, no proxy, no
  LD_LIBRARY_PATH hack (removed .local-sqlite/).
- Consolidate CI into one Windows workflow: fetch actions from the gitea.com
  mirror, use the runner's pre-installed Flutter (no SDK download), and use the
  flutter-io.cn pub/Flutter mirrors. Server tests use the Tsinghua PyPI mirror.
- Document the offline build + China mirrors in README.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
akibaandClaude Opus 4.8 committed 2026-06-21 03:34:11 +08:00
1 parent 72428dc075
commit 25ba717c97
7 files changed
+77 -126

No files matched your search

-3
View File
@@ -47,9 +47,6 @@ app.*.map.json
# OMC orchestration state
.omc/
# Local-only sqlite3 override for offline/firewalled test runs
.local-sqlite/
# Python server artifacts
server/.venv/
server/.omc/