Skip to content

Commit 8dd0bb4

Browse files
committed
ci: enhance CI workflow with matrix strategy for OS and library types
1 parent 986f98f commit 8dd0bb4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
name: ubuntu:22.04-release
8-
runs-on: ubuntu-22.04
7+
name: ${{matrix.os}}-release-${{matrix.lib}}
8+
runs-on: ${{matrix.os}}
99
env:
1010
CMAKE_GENERATOR: Ninja
1111
DEBIAN_FRONTEND: noninteractive
1212
defaults:
1313
run:
1414
shell: bash -e -o pipefail {0}
15+
strategy:
16+
matrix:
17+
os:
18+
- ubuntu-22.04
19+
- ubuntu-24.04
20+
lib:
21+
- shared
22+
- static
1523
steps:
1624
- name: install dependencies
1725
run: |
@@ -26,7 +34,8 @@ jobs:
2634
- name: configure
2735
run: |
2836
cmake -S . -B build \
29-
-DCMAKE_BUILD_TYPE=Release
37+
-DCMAKE_BUILD_TYPE=Release \
38+
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}}
3039
- name: build
3140
run: |
3241
cmake --build build

0 commit comments

Comments
 (0)