From: Steve Lhomme Date: Sun, 2 Oct 2022 11:29:49 +0000 (+0200) Subject: CI: use better names for static/dynamic jobs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbde34fecad08903f46997f269c2f742bd69e221;p=libmatroska CI: use better names for static/dynamic jobs --- diff --git a/.github/workflows/linux-gcc10.yaml b/.github/workflows/linux-gcc10.yaml index 105f544..0a28e45 100644 --- a/.github/workflows/linux-gcc10.yaml +++ b/.github/workflows/linux-gcc10.yaml @@ -7,7 +7,7 @@ on: jobs: build_libmatroska: - name: libmatroska for Linux gcc10 + name: libmatroska with gcc10 runs-on: ubuntu-latest steps: - uses: lukka/get-cmake@latest diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index bacc280..8ff5252 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -7,7 +7,7 @@ on: jobs: build_libmatroska: - name: libmatroska for Linux + name: libmatroska runs-on: ubuntu-latest steps: - uses: lukka/get-cmake@latest diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 934a720..04127a4 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -7,7 +7,7 @@ on: jobs: build_libmatroska: - name: libmatroska for macOS + name: libmatroska runs-on: macos-latest steps: - uses: lukka/get-cmake@latest diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index e98ab7b..66dc2d5 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -7,13 +7,13 @@ on: jobs: build_libmatroska: - name: ${{ matrix.config }} libmatroska shared:${{ matrix.BUILD_SHARED_LIBS }} for Windows + name: libmatroska ${{ matrix.config }} ${{ matrix.shared }} runs-on: windows-latest strategy: fail-fast: false matrix: config: [Debug, Release] - BUILD_SHARED_LIBS: [off, on] + shared: [Dynamic, Static] steps: - uses: lukka/get-cmake@latest @@ -27,8 +27,12 @@ jobs: path: libebml # minimum version we support ref: 'release-1.4.3' - - name: Configure libebml - run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }} + - name: Configure static libebml + if: ${{ matrix.shared == 'Static' }} + run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=OFF + - name: Configure dynamic libebml + if: ${{ matrix.shared == 'Dynamic' }} + run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=ON - name: Build libebml run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel @@ -36,8 +40,12 @@ jobs: - name: Install libebml run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built - - name: Configure - run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }} + - name: Configure static library + if: ${{ matrix.shared == 'Static' }} + run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=OFF + - name: Configure dynamic library + if: ${{ matrix.shared == 'Dynamic' }} + run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=ON - name: Build run: cmake --build _build --config ${{ matrix.config }} --parallel