]> granicus.if.org Git - libmatroska/commitdiff
CI: use better names for static/dynamic jobs
authorSteve Lhomme <slhomme@matroska.org>
Sun, 2 Oct 2022 11:29:49 +0000 (13:29 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Tue, 4 Oct 2022 12:58:20 +0000 (14:58 +0200)
.github/workflows/linux-gcc10.yaml
.github/workflows/linux.yaml
.github/workflows/macos.yaml
.github/workflows/windows.yaml

index 105f5440dbc9263067e7c959c0f9c39f15b312df..0a28e45069f9251595acf7be4c9a94228ec12d52 100644 (file)
@@ -7,7 +7,7 @@ on:
 \r
 jobs:\r
   build_libmatroska:\r
-    name: libmatroska for Linux gcc10\r
+    name: libmatroska with gcc10\r
     runs-on: ubuntu-latest\r
     steps:\r
       - uses: lukka/get-cmake@latest\r
index bacc280aa7c06ac3d59fc35ff202895fad0b5bd7..8ff5252d8e27fd7aed6a559f954bb1740c5ed9ca 100644 (file)
@@ -7,7 +7,7 @@ on:
 \r
 jobs:\r
   build_libmatroska:\r
-    name: libmatroska for Linux\r
+    name: libmatroska\r
     runs-on: ubuntu-latest\r
     steps:\r
       - uses: lukka/get-cmake@latest\r
index 934a7208325ae768d991a4bb7acbd87c2c9d922e..04127a4d9a52657fae7714926695a2f6661ca7cc 100644 (file)
@@ -7,7 +7,7 @@ on:
 \r
 jobs:\r
   build_libmatroska:\r
-    name: libmatroska for macOS\r
+    name: libmatroska\r
     runs-on: macos-latest\r
     steps:\r
       - uses: lukka/get-cmake@latest\r
index e98ab7bf3378a13aaefbcbf0f2dd0feda9900a91..66dc2d53fbca66171a0f8999bb137d6e608d24ec 100644 (file)
@@ -7,13 +7,13 @@ on:
 \r
 jobs:\r
   build_libmatroska:\r
-    name: ${{ matrix.config }} libmatroska shared:${{ matrix.BUILD_SHARED_LIBS }} for Windows\r
+    name: libmatroska ${{ matrix.config }} ${{ matrix.shared }}\r
     runs-on: windows-latest\r
     strategy:\r
       fail-fast: false\r
       matrix:\r
         config: [Debug, Release]\r
-        BUILD_SHARED_LIBS: [off, on]\r
+        shared: [Dynamic, Static]\r
     steps:\r
       - uses: lukka/get-cmake@latest\r
 \r
@@ -27,8 +27,12 @@ jobs:
           path: libebml\r
           # minimum version we support ref: 'release-1.4.3'\r
 \r
-      - name: Configure libebml\r
-        run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }}\r
+      - name: Configure static libebml\r
+        if: ${{ matrix.shared == 'Static' }}\r
+        run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=OFF\r
+      - name: Configure dynamic libebml\r
+        if: ${{ matrix.shared == 'Dynamic' }}\r
+        run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=ON\r
 \r
       - name: Build libebml\r
         run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel\r
@@ -36,8 +40,12 @@ jobs:
       - name: Install libebml\r
         run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built\r
 \r
-      - name: Configure \r
-        run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }}\r
+      - name: Configure static library\r
+        if: ${{ matrix.shared == 'Static' }}\r
+        run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=OFF\r
+      - name: Configure dynamic library\r
+        if: ${{ matrix.shared == 'Dynamic' }}\r
+        run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=ON\r
 \r
       - name: Build\r
         run: cmake --build _build --config ${{ matrix.config }} --parallel\r