From: Steve Lhomme Date: Sat, 15 Oct 2022 13:57:51 +0000 (+0200) Subject: CI: build Windows on multiple architectures X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe05d0904b383fbcaf146b1dc1a7e7253b9fdafe;p=libmatroska CI: build Windows on multiple architectures So we have a platform building on 32 bits and on arm. --- diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 66dc2d5..a5b91a2 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -7,13 +7,14 @@ on: jobs: build_libmatroska: - name: libmatroska ${{ matrix.config }} ${{ matrix.shared }} + name: libmatroska ${{ matrix.arch }} ${{ matrix.config }} ${{ matrix.shared }} runs-on: windows-latest strategy: fail-fast: false matrix: config: [Debug, Release] shared: [Dynamic, Static] + arch: [x64, win32, arm64] steps: - uses: lukka/get-cmake@latest @@ -29,10 +30,10 @@ jobs: - name: Configure static libebml if: ${{ matrix.shared == 'Static' }} - run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=OFF + run: cmake -S libebml -B libebml/_build -A ${{ matrix.arch }} -DBUILD_SHARED_LIBS=OFF - name: Configure dynamic libebml if: ${{ matrix.shared == 'Dynamic' }} - run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=ON + run: cmake -S libebml -B libebml/_build -A ${{ matrix.arch }} -DBUILD_SHARED_LIBS=ON - name: Build libebml run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel @@ -42,10 +43,10 @@ jobs: - 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 + run: cmake -S . -B _build -A ${{ matrix.arch }} -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 + run: cmake -S . -B _build -A ${{ matrix.arch }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=ON - name: Build run: cmake --build _build --config ${{ matrix.config }} --parallel