Skip to content

Commit

Permalink
CI: build Linux in static and shared versions
Browse files Browse the repository at this point in the history
This is the most likely (only) platform where building dynamically might be used.
  • Loading branch information
robUx4 committed Dec 28, 2023
1 parent 58b3385 commit 195d1ab
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/linux-gcc13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ on:

jobs:
build_libebml:
name: libebml with gcc13
name: libebml ${{ matrix.shared.name }} with gcc13
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shared: [
{ "name": "Dynamic", "option": "ON"},
{ "name": "Static", "option": "OFF"}
]
env:
CMAKE_OPTIONS: -DCMAKE_CXX_EXTENSIONS=OFF -DBUILD_TESTING=ON
steps:
Expand All @@ -17,8 +24,8 @@ jobs:
- name: Get pushed code
uses: actions/checkout@v3

- name: Configure
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built
- name: Configure ${{ matrix.shared.name }} library
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built
env:
CC: gcc-13
CXX: g++-13
Expand Down

0 comments on commit 195d1ab

Please sign in to comment.