Skip to content

Commit

Permalink
iox-#5 Squash me clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jun 25, 2022
1 parent f8fdc20 commit 51931c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 51931c1

Please sign in to comment.