From a2ae51056303f3dbd0d0e5b63a697c5dddea804a Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 5 Feb 2026 14:54:32 +0000 Subject: [PATCH] fix: configure Rust CI workflow with cargo commands --- .gitea/workflows/ci.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 48e1e5f..45d673f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,29 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/setup-rust@v1 with: - python-version: '3.11' - - name: Install Rust - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - source $HOME/.cargo/env - rustc --version - cargo --version - - name: Build - run: | - source $HOME/.cargo/env - cargo build --release - - name: Run tests - run: | - source $HOME/.cargo/env - cargo test --all-features - - name: Clippy - run: | - source $HOME/.cargo/env - cargo clippy --all-targets - - name: Format check - run: | - source $HOME/.cargo/env - cargo fmt --check + rust-version: '1.70' + - run: cargo build --all-features + - run: cargo test --all-features + - run: cargo clippy --all-features -- -D warnings + - run: cargo fmt --check \ No newline at end of file