ci(rust): 切换 Gitea runner 标签为 linux
bat-rust / Build and test Rust (push) Canceled after 14m5s

保留 .gitea/workflows/bat.yml 作为实际工作流入口,删除冗余副本,并同步项目计划与当前缺口文档。
This commit is contained in:
2026-07-21 11:35:59 +08:00
parent d76f6f1c88
commit 924cff5f51
4 changed files with 4 additions and 63 deletions
-59
View File
@@ -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
+2 -2
View File
@@ -1,5 +1,5 @@
# Gitea Actions workflow for the Rust workspace. # 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. # directories.
name: bat-rust name: bat-rust
@@ -14,7 +14,7 @@ on:
jobs: jobs:
rust: rust:
name: Build and test Rust name: Build and test Rust
runs-on: host runs-on: linux
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
+1 -1
View File
@@ -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:本地开发、服务端部署。 2. Docker Compose:本地开发、服务端部署。
3. 数据备份与恢复文档。 3. 数据备份与恢复文档。
4. 用户文档、开发文档、故障排查文档。 4. 用户文档、开发文档、故障排查文档。
+1 -1
View File
@@ -402,7 +402,7 @@
处理结果: 处理结果:
- 明确决策:本项目不加入 GitHub Workflows,也不引入其他托管 CI。 - 明确决策:本项目不加入 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`)。 - 质量门禁由本地默认验证命令和自托管 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`)。 - 发布类检查(build、smoke)由 `Makefile``scripts/` 下的可重复脚本承担(如 `make official-smoke`)。