mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix workflow
This commit is contained in:
parent
1c62af9160
commit
92e0a28e55
1 changed files with 11 additions and 11 deletions
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue