From 55930364f8f186200ae5c693f4ab97146339a50a Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 6 Oct 2021 19:07:05 +0200 Subject: [PATCH] fix(ci): install linux dependencies before clippy --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a832a4..579f0bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,10 @@ jobs: run: | rustup component add rustfmt cargo fmt --all -- --check + - name: Install Linux dependencies + if: ${{ runner.os == 'Linux' }} + run: | + sudo apt install libx11-dev libxtst-dev libxkbcommon-dev libdbus-1-dev libwxgtk3.0-gtk3-dev - name: Check clippy run: | rustup component add clippy @@ -29,10 +33,6 @@ jobs: - name: Install cargo-make run: | cargo install --force cargo-make - - name: Install Linux dependencies - if: ${{ runner.os == 'Linux' }} - run: | - sudo apt install libx11-dev libxtst-dev libxkbcommon-dev libdbus-1-dev libwxgtk3.0-gtk3-dev - name: Run test suite run: cargo make test-binary - name: Build @@ -47,13 +47,13 @@ jobs: run: | rustup component add rustfmt cargo fmt --all -- --check + - name: Install Linux dependencies + run: | + sudo apt install libxkbcommon-dev libwxgtk3.0-gtk3-dev libdbus-1-dev - name: Check clippy run: | rustup component add clippy cargo clippy -p espanso --features wayland -- -D warnings - - name: Install dependencies - run: | - sudo apt install libxkbcommon-dev libwxgtk3.0-gtk3-dev libdbus-1-dev - name: Install cargo-make run: | cargo install --force cargo-make