From d7b957ce4d038131975c2b659cb4aec9db63b997 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 23:00:56 +0000 Subject: [PATCH] fix: add Gitea Actions CI workflow for Rust project --- .gitea/workflows/ci.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1ba1119..2dae80f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,27 +2,18 @@ name: CI on: push: - branches: [ main, master ] + branches: [main] pull_request: - branches: [ main, master ] + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 + - uses: actions/setup-rust@v1 with: - toolchain: stable - override: true - - - name: Build project - run: cargo build --all - - - name: Run tests - run: cargo test --all - - - name: Run clippy - run: cargo clippy --all -- -D warnings + rust-version: stable + - run: cargo build --all-features + - run: cargo test --all-features + - run: cargo clippy --all-features -- -D warnings