fix: configure Rust CI workflow with cargo commands
Some checks failed
CI / test (push) Failing after 2s

This commit is contained in:
2026-02-05 14:54:32 +00:00
parent d7fa6c9c58
commit a2ae510563

View File

@@ -11,29 +11,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-rust@v1
with: with:
python-version: '3.11' rust-version: '1.70'
- name: Install Rust - run: cargo build --all-features
run: | - run: cargo test --all-features
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - run: cargo clippy --all-features -- -D warnings
echo "$HOME/.cargo/bin" >> $GITHUB_PATH - run: cargo fmt --check
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