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.
# 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