From 924cff5f510a667cc9eccddeb9ff9d953dd40257 Mon Sep 17 00:00:00 2001 From: Yuyi-Oak <1722157266@qq.com> Date: Tue, 21 Jul 2026 11:35:59 +0800 Subject: [PATCH] =?UTF-8?q?ci(rust):=20=E5=88=87=E6=8D=A2=20Gitea=20runner?= =?UTF-8?q?=20=E6=A0=87=E7=AD=BE=E4=B8=BA=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 保留 .gitea/workflows/bat.yml 作为实际工作流入口,删除冗余副本,并同步项目计划与当前缺口文档。 --- .gitea/bat.yml | 59 ------------------------------------ .gitea/workflows/bat.yml | 4 +-- PROJECT_PLAN.md | 2 +- docs/reports/CURRENT_GAPS.md | 2 +- 4 files changed, 4 insertions(+), 63 deletions(-) delete mode 100644 .gitea/bat.yml diff --git a/.gitea/bat.yml b/.gitea/bat.yml deleted file mode 100644 index 5a63f6a..0000000 --- a/.gitea/bat.yml +++ /dev/null @@ -1,59 +0,0 @@ -# Gitea Actions workflow for the Rust workspace. -# If your Gitea instance only scans ".gitea/workflows/*.yml", copy this file -# there as well. This file stays host-runner friendly and does not touch real -# resource directories. - -name: bat-rust - -on: - push: - branches: - - "**" - pull_request: - workflow_dispatch: - -jobs: - rust: - name: Build and test Rust - runs-on: host - env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: 1 - BAT_SKIP_ENV_FILE: "1" - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt,clippy - - - name: Show tool versions - shell: bash - run: | - set -euo pipefail - rustc --version - cargo --version - command -v curl - command -v unzip - - - name: Check formatting - shell: bash - run: cargo fmt --all -- --check - - - name: Check workspace - shell: bash - run: cargo check --workspace --locked - - - name: Build workspace - shell: bash - run: cargo build --workspace --locked - - - name: Run clippy - shell: bash - run: cargo clippy --workspace --all-targets --locked -- -D warnings - - - name: Run tests - shell: bash - run: cargo test --workspace --locked diff --git a/.gitea/workflows/bat.yml b/.gitea/workflows/bat.yml index da46244..da5272d 100644 --- a/.gitea/workflows/bat.yml +++ b/.gitea/workflows/bat.yml @@ -1,5 +1,5 @@ # Gitea Actions workflow for the Rust workspace. -# This workflow is host-runner friendly and does not touch real resource +# This workflow is linux-runner friendly and does not touch real resource # directories. name: bat-rust @@ -14,7 +14,7 @@ on: jobs: rust: name: Build and test Rust - runs-on: host + runs-on: linux env: CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 diff --git a/PROJECT_PLAN.md b/PROJECT_PLAN.md index 5193157..f89337c 100644 --- a/PROJECT_PLAN.md +++ b/PROJECT_PLAN.md @@ -348,7 +348,7 @@ BlueArchiveToolkit 不是一次性脚本,也不是演示项目。最终交付 交付物: -1. 发布验证:format、lint、test、build、security audit、release artifact 由本地可重复命令、自托管 Gitea host-runner workflow 与脚本承担(决策:不引入 GitHub Workflows 等托管 CI,见 `docs/reports/CURRENT_GAPS.md` G-017)。 +1. 发布验证:format、lint、test、build、security audit、release artifact 由本地可重复命令、自托管 Gitea linux-runner workflow 与脚本承担(决策:不引入 GitHub Workflows 等托管 CI,见 `docs/reports/CURRENT_GAPS.md` G-017)。 2. Docker Compose:本地开发、服务端部署。 3. 数据备份与恢复文档。 4. 用户文档、开发文档、故障排查文档。 diff --git a/docs/reports/CURRENT_GAPS.md b/docs/reports/CURRENT_GAPS.md index c97f737..f49b57b 100644 --- a/docs/reports/CURRENT_GAPS.md +++ b/docs/reports/CURRENT_GAPS.md @@ -402,7 +402,7 @@ 处理结果: - 明确决策:本项目不加入 GitHub Workflows,也不引入其他托管 CI。 -- 目前补充了自托管 Gitea host-runner workflow(`.gitea/bat.yml` 与 `.gitea/workflows/bat.yml`),仅用于 Rust workspace 的构建和测试,不改变“不引入托管 CI”的决策。 +- 目前补充了自托管 Gitea linux-runner workflow(`.gitea/workflows/bat.yml`),仅用于 Rust workspace 的构建和测试,不改变“不引入托管 CI”的决策。 - 质量门禁由本地默认验证命令和自托管 workflow 共同承担:提交前执行 `cargo fmt` / `cargo clippy --workspace --all-targets -- -D warnings` / `cargo test --workspace`(见 `docs/guides/development.md` 与 `docs/guides/baseline.md`)。 - 发布类检查(build、smoke)由 `Makefile` 与 `scripts/` 下的可重复脚本承担(如 `make official-smoke`)。