Skip to content

Commit 44f0d61

Browse files
committed
ci: add version-specific feature testing per macOS runner
Test appropriate feature flags for each macOS version: - macOS 13: async,macos_13_0 - macOS 14: async,macos_14_4 - macOS 15: async,macos_15_2 Ensures APIs are tested on matching OS versions.
1 parent d639442 commit 44f0d61

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ jobs:
4848
include:
4949
- os: macos-14
5050
name: macOS 14 (Sonoma) ARM64
51+
features: "async,macos_14_4"
5152
- os: macos-15
5253
name: macOS 15 (Sequoia) ARM64
54+
features: "async,macos_15_2"
5355
- os: macos-13
5456
name: macOS 13 (Ventura) Intel
57+
features: "async,macos_13_0"
5558
runs-on: ${{ matrix.os }}
5659
name: Build - ${{ matrix.name }}
5760
steps:
@@ -68,12 +71,14 @@ jobs:
6871
key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
6972
restore-keys: |
7073
${{ runner.os }}-${{ matrix.os }}-cargo-
71-
- name: Build
74+
- name: Build (default features)
7275
run: cargo build --verbose
73-
- name: Build with all features
74-
run: cargo build --verbose --all-features
75-
- name: Run tests
76+
- name: Build with version-specific features (${{ matrix.features }})
77+
run: cargo build --verbose --features "${{ matrix.features }}"
78+
- name: Run tests (default features)
7679
run: cargo test --verbose
80+
- name: Run tests with version-specific features
81+
run: cargo test --verbose --features "${{ matrix.features }}"
7782

7883
# ==========================================================================
7984
# Documentation (only on main)

0 commit comments

Comments
 (0)