From 72ae00a508537d3f884e5518eb80e587d5e835f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 20 Apr 2024 17:58:20 +0200 Subject: [PATCH] Update the workflow --- .github/workflows/ci.yml | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06881cf..9f23343 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,40 +24,38 @@ jobs: - beta - nightly steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install valgrind run: sudo apt update && sudo apt install -y valgrind - name: Install Rust ${{ matrix.rust }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal + run: rustup toolchain install ${{ matrix.rust }} - name: Run cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --verbose --all-features + run: cargo +${{ matrix.rust }} build --verbose - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose --all-features + run: cargo +${{ matrix.rust }} test --verbose - name: Run C bindings tests run: make -C tests clean test formatting: name: Cargo fmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - components: rustfmt - - name: Rustfmt Check - uses: actions-rust-lang/rustfmt@v1 + - uses: actions/checkout@v4 + - name: Update Rust + run: rustup update stable + - name: Run cargo fmt + run: cargo +stable fmt --all -- --check + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Update Rust + run: rustup update stable + - name: Run clippy + run: cargo +stable clippy --all-features cargo-deny: name: Check dependencies runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: EmbarkStudios/cargo-deny-action@v1