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
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
@ -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,7 +137,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') }}
|
||||||
|
|
||||||
- run: cargo build --workspace --examples
|
- run: cargo build --workspace --examples
|
||||||
- run: cargo test --workspace
|
- run: cargo test --workspace
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue