Fix workflow

This commit is contained in:
johannesd3 2021-05-08 22:41:19 +02:00
parent 1c62af9160
commit 92e0a28e55
No known key found for this signature in database
GPG key ID: 8C2739E91D410F75

View file

@ -8,18 +8,18 @@ on:
[ [
"**.rs", "**.rs",
"Cargo.toml", "Cargo.toml",
"/Cargo.lock", "Cargo.lock",
"/rustfmt.toml", "rustfmt.toml",
"/.github/workflows", ".github/workflows/*",
] ]
pull_request: pull_request:
paths: paths:
[ [
"**.rs", "**.rs",
"Cargo.toml", "Cargo.toml",
"/Cargo.lock", "Cargo.lock",
"/rustfmt.toml", "rustfmt.toml",
"/.github/workflows", ".github/workflows/*",
] ]
schedule: schedule:
# Run CI every week # Run CI every week
@ -87,7 +87,7 @@ jobs:
~/.cargo/registry/cache ~/.cargo/registry/cache
~/.cargo/git ~/.cargo/git
target 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 - 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 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 hack build --each-feature -p librespot-audio
- run: cargo build -p librespot-connect - run: cargo build -p librespot-connect
- run: cargo build -p librespot-connect --no-default-features --features with-dns-sd - 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: test-windows:
needs: fmt needs: fmt
@ -137,13 +137,13 @@ jobs:
~/.cargo/registry/cache ~/.cargo/registry/cache
~/.cargo/git ~/.cargo/git
target 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 build --workspace --examples
- run: cargo test --workspace - run: cargo test --workspace
- run: cargo install cargo-hack - 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 --no-default-features
- run: cargo build - run: cargo build
@ -183,7 +183,7 @@ jobs:
~/.cargo/registry/cache ~/.cargo/registry/cache
~/.cargo/git ~/.cargo/git
target 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 - name: Install cross
run: cargo install cross || true run: cargo install cross || true
- name: Build - name: Build