Skip to content

Commit

Permalink
ci: enhance CI workflow with matrix strategy for OS and library types
Browse files Browse the repository at this point in the history
  • Loading branch information
pageldev committed Jan 19, 2025
1 parent 986f98f commit 8dd0bb4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@ on: [push, pull_request]

jobs:
build:
name: ubuntu:22.04-release
runs-on: ubuntu-22.04
name: ${{matrix.os}}-release-${{matrix.lib}}
runs-on: ${{matrix.os}}
env:
CMAKE_GENERATOR: Ninja
DEBIAN_FRONTEND: noninteractive
defaults:
run:
shell: bash -e -o pipefail {0}
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
lib:
- shared
- static
steps:
- name: install dependencies
run: |
Expand All @@ -26,7 +34,8 @@ jobs:
- name: configure
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}}
- name: build
run: |
cmake --build build
Expand Down

0 comments on commit 8dd0bb4

Please sign in to comment.