Skip to content

Commit 6cea2ad

Browse files
committed
fix: test pipewire with rust 1.85
1 parent 8695b5d commit 6cea2ad

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/workflows/platforms.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ on:
2424

2525
env:
2626
# MSRV varies by backend due to platform-specific dependencies
27-
MSRV_AAUDIO: "1.82"
28-
MSRV_ALSA: "1.82"
29-
MSRV_COREAUDIO: "1.80"
27+
MSRV_AAUDIO: "1.85"
28+
MSRV_ALSA: "1.85"
29+
MSRV_COREAUDIO: "1.82"
3030
MSRV_JACK: "1.82"
31-
MSRV_WASIP1: "1.78"
31+
MSRV_WASIP1: "1.82"
3232
MSRV_WASM: "1.82"
3333
MSRV_WINDOWS: "1.82"
3434

@@ -65,13 +65,13 @@ jobs:
6565
platform-msrv: ${{ env.MSRV_ALSA }}
6666
jack-msrv: ${{ env.MSRV_JACK }}
6767

68-
- name: Install Rust MSRV (${{ env.MSRV_ALSA }})
68+
- name: Install Rust MSRV (${{ env.MSRV_PIPEWIRE }})
6969
uses: dtolnay/rust-toolchain@master
7070
with:
7171
toolchain: ${{ env.MSRV_ALSA }}
7272

7373
- name: Install Rust MSRV (${{ steps.msrv.outputs.all-features }})
74-
if: steps.msrv.outputs.all-features != env.MSRV_ALSA
74+
if: steps.msrv.outputs.all-features != env.MSRV_PIPEWIRE
7575
uses: dtolnay/rust-toolchain@master
7676
with:
7777
toolchain: ${{ steps.msrv.outputs.all-features }}
@@ -107,6 +107,11 @@ jobs:
107107
steps:
108108
- uses: actions/checkout@v5
109109

110+
- name: Cache Linux audio packages
111+
uses: awalsh128/cache-apt-pkgs-action@latest
112+
with:
113+
packages: ${{ env.PACKAGES_LINUX }}
114+
110115
- name: Determine MSRV for all-features
111116
id: msrv
112117
uses: ./.github/actions/determine-msrv

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ audioworklet = [
5454
# Platform: All platforms
5555
custom = []
5656

57-
default = ["pipewire"]
57+
default = []
5858

5959
[dependencies]
6060
dasp_sample = "0.11"

examples/record_wav.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ fn main() -> Result<(), anyhow::Error> {
7373
} else {
7474
cpal::default_host()
7575
};
76+
77+
// Conditionally compile with jack if the feature is specified.
78+
#[cfg(all(
79+
any(
80+
target_os = "linux",
81+
target_os = "dragonfly",
82+
target_os = "freebsd",
83+
target_os = "netbsd"
84+
),
85+
feature = "pipewire"
86+
))]
7687
// Manually check for flags. Can be passed through cargo with -- e.g.
7788
// cargo run --release --example record_wav --features pipewire -- -- pipewire
7889
let host = if opt.pipewire {

0 commit comments

Comments
 (0)