]> granicus.if.org Git - libmatroska/commitdiff
CI: add separate UWP target
authorSteve Lhomme <slhomme@matroska.org>
Sun, 16 Oct 2022 14:13:16 +0000 (16:13 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Sat, 22 Oct 2022 12:25:53 +0000 (14:25 +0200)
It requires less targets

.github/workflows/uwp.yaml [new file with mode: 0644]

diff --git a/.github/workflows/uwp.yaml b/.github/workflows/uwp.yaml
new file mode 100644 (file)
index 0000000..f6c041f
--- /dev/null
@@ -0,0 +1,52 @@
+name: "Windows UWP"\r
+on:\r
+  push:\r
+    branches: [ master ]\r
+  pull_request:\r
+    # branches: [ master ]\r
+\r
+jobs:\r
+  build_libmatroska:\r
+    name: libmatroska ${{ matrix.arch.name }} ${{ matrix.config }}\r
+    runs-on: windows-latest\r
+    strategy:\r
+      fail-fast: false\r
+      matrix:\r
+        config: [Debug, Release]\r
+        arch: [\r
+          { "name": "x64",   "option": "x64"},\r
+          { "name": "arm64", "option": "arm64"},\r
+        ]\r
+    env:\r
+      CMAKE_OPTIONS: -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_SYSTEM_NAME="WindowsStore" -DCMAKE_SYSTEM_VERSION="10.0" -DCMAKE_CXX_FLAGS_INIT="-DWINVER=0x0A00 -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP"\r
+      CMAKE_MATROSKA_OPTIONS: ${{ env.CMAKE_OPTIONS }} -DBUILD_EXAMPLES=ON\r
+    steps:\r
+      - uses: lukka/get-cmake@latest\r
+\r
+      - name: Get pushed code\r
+        uses: actions/checkout@v3\r
+      \r
+      - name: Checkout libebml\r
+        uses: actions/checkout@v3\r
+        with: \r
+          repository: Matroska-Org/libebml\r
+          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 ${{ env.CMAKE_OPTIONS }} -A ${{ matrix.arch.option }} -DBUILD_SHARED_LIBS=OFF\r
+\r
+      - name: Build libebml\r
+        run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel\r
+\r
+      - name: Install libebml\r
+        run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built\r
+\r
+      - name: Configure library\r
+        run: cmake -S . -B _build ${{ env.CMAKE_MATROSKA_OPTIONS }} -A ${{ matrix.arch.option }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=OFF\r
+\r
+      - name: Build\r
+        run: cmake --build _build --config ${{ matrix.config }} --parallel\r
+\r
+      - name: Test installation\r
+        run: cmake --install _build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built\r