From 36a2c85a9e41098e9db418b108c06203b4ebac70 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Wed, 26 Jul 2023 19:50:42 +0100 Subject: [PATCH] update actions dependencies --- .github/workflows/ci.yml | 26 ++++++-------------------- .github/workflows/rustfmt.yml | 17 ++++------------- 2 files changed, 10 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc8ea8e..4b806d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,29 +21,15 @@ jobs: TARGET: x86_64-unknown-linux-gnu steps: - - uses: actions/checkout@v2 - - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.TARGET }} - override: true + targets: ${{ matrix.TARGET }} - name: Install libusb library run: sudo apt-get install -y libusb-1.0.0-dev - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-targets - - - uses: actions-rs/cargo@v1 - with: - command: check - args: --features control-buffer-256 - - - uses: actions-rs/cargo@v1 - with: - command: check - args: --features defmt + - run: cargo check --all-targets + - run: cargo check --features control-buffer-256 + - run: cargo check --features defmt diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index ef6c94a..80b5bf0 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -10,18 +10,9 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features + - run: cargo fmt --all -- --check + - run: cargo clippy --all-features