Skip to content

Commit a08152e

Browse files
committed
chore: make the ci same logic with pulseaudio
1 parent 58de45d commit a08152e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/actions/determine-msrv/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ inputs:
1212
description: The MSRV for PulseAudio backend (optional, Linux only)
1313
required: false
1414
default: ''
15+
pipewire-msrv:
16+
description: The MSRV for Pipewire backend (optional, Linux only)
17+
required: false
18+
default: ''
1519

1620
outputs:
1721
all-features:
@@ -28,11 +32,15 @@ runs:
2832
PLATFORM_MSRV="${{ inputs.platform-msrv }}"
2933
JACK_MSRV="${{ inputs.jack-msrv }}"
3034
PULSEAUDIO_MSRV="${{ inputs.pulseaudio-msrv }}"
35+
PIPEWIRE_MSRV="${{ inputs.pulseaudio-msrv }}"
3136
# Use sort -V to find the maximum version
3237
VERSIONS="$PLATFORM_MSRV $JACK_MSRV"
3338
if [ -n "$PULSEAUDIO_MSRV" ]; then
3439
VERSIONS="$VERSIONS $PULSEAUDIO_MSRV"
3540
fi
41+
if [ -n "$PIPEWIRE_MSRV" ]; then
42+
VERSIONS="$VERSIONS $PIPEWIRE_MSRV"
43+
fi
3644
MAX_MSRV=$(printf '%s\n' $VERSIONS | sort -V | tail -n1)
3745
echo "all-features=$MAX_MSRV" >> $GITHUB_OUTPUT
38-
echo "Platform MSRV: $PLATFORM_MSRV, JACK MSRV: $JACK_MSRV, PulseAudio MSRV: $PULSEAUDIO_MSRV, Using for --all-features: $MAX_MSRV"
46+
echo "Platform MSRV: $PLATFORM_MSRV, JACK MSRV: $JACK_MSRV, PulseAudio MSRV: $PULSEAUDIO_MSRV, PIPEWIRE_MSRV: $PIPEWIRE_MSRV, Using for --all-features: $MAX_MSRV"

.github/workflows/platforms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ env:
2929
MSRV_COREAUDIO: "1.80"
3030
MSRV_JACK: "1.82"
3131
MSRV_PULSEAUDIO: "1.88"
32+
MSRV_PIPEWIRE: "1.82"
3233
MSRV_WASIP1: "1.78"
3334
MSRV_WASM: "1.82"
3435
MSRV_WINDOWS: "1.82"
@@ -66,6 +67,7 @@ jobs:
6667
platform-msrv: ${{ env.MSRV_ALSA }}
6768
jack-msrv: ${{ env.MSRV_JACK }}
6869
pulseaudio-msrv: ${{ env.MSRV_PULSEAUDIO }}
70+
pipewire-msrv: ${{ env.MSRV_PIPEWIRE }}
6971

7072
- name: Install Rust MSRV (${{ env.MSRV_ALSA }})
7173
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)