From 1ef708d2d93cbe6c36d1a8b98b88e28a2ac0d785 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Fri, 2 Aug 2024 14:17:51 +0200 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 33 ++++++++------------------------- .github/workflows/clippy.yml | 18 +++++++----------- 2 files changed, 15 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa6a63f..a869c06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,30 +29,13 @@ jobs: experimental: true steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - target: thumbv7em-none-eabihf - override: true - - uses: actions-rs/cargo@v1 - with: - command: build - args: --features=${{ matrix.mcu }},usb_fs --examples - - uses: actions-rs/cargo@v1 - with: - command: build - args: --features=${{ matrix.mcu }},usb_fs --examples --release - - uses: actions-rs/cargo@v1 - with: - command: build - args: --features=${{ matrix.mcu }},rt,usb_fs --examples - - uses: actions-rs/cargo@v1 - with: - command: build - args: --features=${{ matrix.mcu }},rt,usb_hs --examples - - uses: actions-rs/cargo@v1 - with: - command: test - args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib + targets: thumbv7em-none-eabihf + - run: cargo build --features=${{ matrix.mcu }},usb_fs --examples + - run: cargo build --features=${{ matrix.mcu }},usb_fs --examples --release + - run: cargo build --features=${{ matrix.mcu }},rt,usb_fs --examples + - run: cargo build --features=${{ matrix.mcu }},rt,usb_hs --examples + - run: cargo test --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index b3b04f0..d4a9abc 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -6,16 +6,12 @@ jobs: clippy_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: components: clippy - toolchain: stable - target: thumbv7em-none-eabihf - override: true - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - # TODO: For now, allow clippy::erasing_op - # TODO: Enable clippy on examples via `--examples` - args: --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op + toolchain: 1.80.0 + targets: thumbv7em-none-eabihf + # TODO: For now, allow clippy::erasing_op + # TODO: Enable clippy on examples via `--examples` + - run: cargo clippy --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op