From 195d1abb464604584b4dab07c2d6bbd668740cc2 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 28 Dec 2023 09:43:09 +0100 Subject: [PATCH] CI: build Linux in static and shared versions This is the most likely (only) platform where building dynamically might be used. --- .github/workflows/linux-gcc13.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-gcc13.yaml b/.github/workflows/linux-gcc13.yaml index 73512737..fb0b7ceb 100644 --- a/.github/workflows/linux-gcc13.yaml +++ b/.github/workflows/linux-gcc13.yaml @@ -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: @@ -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