From 92e0a28e55b6695f9cb390c84a40241e56b4805e Mon Sep 17 00:00:00 2001 From: johannesd3 Date: Sat, 8 May 2021 22:41:19 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/test.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22db4edc..5c04cbb1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,18 +8,18 @@ on: [ "**.rs", "Cargo.toml", - "/Cargo.lock", - "/rustfmt.toml", - "/.github/workflows", + "Cargo.lock", + "rustfmt.toml", + ".github/workflows/*", ] pull_request: paths: [ "**.rs", "Cargo.toml", - "/Cargo.lock", - "/rustfmt.toml", - "/.github/workflows", + "Cargo.lock", + "rustfmt.toml", + ".github/workflows/*", ] schedule: # Run CI every week @@ -87,7 +87,7 @@ jobs: ~/.cargo/registry/cache ~/.cargo/git target - key: ${{ runner.os }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} - name: Install developer package dependencies run: sudo apt-get update && sudo apt-get install libpulse-dev portaudio19-dev libasound2-dev libsdl2-dev gstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavahi-compat-libdnssd-dev @@ -102,7 +102,7 @@ jobs: - run: cargo hack build --each-feature -p librespot-audio - run: cargo build -p librespot-connect - run: cargo build -p librespot-connect --no-default-features --features with-dns-sd - - run: cargo hack build --locked --each-feature + - run: cargo hack build --each-feature test-windows: needs: fmt @@ -137,13 +137,13 @@ jobs: ~/.cargo/registry/cache ~/.cargo/git target - key: ${{ runner.os }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} - run: cargo build --workspace --examples - run: cargo test --workspace - run: cargo install cargo-hack - - run: cargo hack --workspace --remove-dev-deps + - run: cargo hack --workspace --remove-dev-deps - run: cargo build --no-default-features - run: cargo build @@ -183,7 +183,7 @@ jobs: ~/.cargo/registry/cache ~/.cargo/git target - key: ${{ runner.os }}-${{ matrix.target }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-${{ matrix.target }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} - name: Install cross run: cargo install cross || true - name: Build