Skip to content

Commit 7ec4e88

Browse files
authored
ci: check default/no-default/all feature sets with platform-dependent MSRV for JACK (#1089)
* ci: determine platform MSRV with JACK * ci: run checks with MSRV across CI matrix * ci: standardize checks and use per-xjob TARGET env * fix(jack): restrict JACK host to supported platforms
1 parent c6e2461 commit 7ec4e88

File tree

7 files changed

+215
-62
lines changed

7 files changed

+215
-62
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Determine MSRV for all-features
2+
description: Computes the maximum MSRV needed for --all-features tests (platform vs JACK)
3+
4+
inputs:
5+
platform-msrv:
6+
description: The MSRV for the platform backend (e.g., ALSA, CoreAudio, Windows)
7+
required: true
8+
jack-msrv:
9+
description: The MSRV for JACK backend
10+
required: true
11+
12+
outputs:
13+
all-features:
14+
description: The maximum MSRV to use for --all-features tests
15+
value: ${{ steps.compare.outputs.all-features }}
16+
17+
runs:
18+
using: composite
19+
steps:
20+
- name: Compare versions
21+
id: compare
22+
shell: bash
23+
run: |
24+
PLATFORM_MSRV="${{ inputs.platform-msrv }}"
25+
JACK_MSRV="${{ inputs.jack-msrv }}"
26+
# Use sort -V to find the maximum version
27+
MAX_MSRV=$(printf '%s\n' "$PLATFORM_MSRV" "$JACK_MSRV" | sort -V | tail -n1)
28+
echo "all-features=$MAX_MSRV" >> $GITHUB_OUTPUT
29+
echo "Platform MSRV: $PLATFORM_MSRV, JACK MSRV: $JACK_MSRV, Using for --all-features: $MAX_MSRV"

0 commit comments

Comments
 (0)