From 51931c17cafcd3737cc1a86f0cf1ad12f44ea193 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Sat, 25 Jun 2022 19:13:32 +0200 Subject: [PATCH] iox-#5 Squash me clippy --- .github/workflows/rust.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d5f30ef..ee044f8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,7 +46,9 @@ jobs: toolchain: ${{ matrix.toolchain }} profile: minimal override: true - components: clippy + include: + - os: ubuntu-latest + components: clippy - name: Setup cache uses: actions/cache@v2 with: @@ -57,14 +59,14 @@ jobs: ~/.cargo/git/db/ target/ key: cache-${{ runner.os }}-toolchain-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/build.rs') }} - - if: startsWith(matrix.os, 'ubuntu-latest') == true + - if: runner.os == 'Linux' name: Install dependencies run: | sudo apt update sudo apt install -y libacl1-dev libncurses5-dev - name: Build run: cargo build --all --examples - - if: startsWith(matrix.os, 'ubuntu-latest') == true && startsWith(matrix.toolchain, 'stable') == true + - if: runner.os == 'Linux' && matrix.toolchain == 'stable' name: Run clippy # clippy can reuse the previous build artifacts run: cargo clippy - name: Run tests