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=5b3fd0c1dcce979defa0ee1e6ee9f52f0e1c9faf;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 52ebd86..c6aeda0 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -7,7 +7,7 @@ on: jobs: build_libmatroska: - name: libmatroska ${{ matrix.config }} ${{ matrix.shared }} + name: libmatroska ${{ matrix.arch.name }} ${{ matrix.config }} ${{ matrix.shared.name }} runs-on: windows-latest strategy: fail-fast: false @@ -17,6 +17,11 @@ jobs: { "name": "Dynamic", "option": "ON"}, { "name": "Static", "option": "OFF"} ] + arch: [ + { "name": "x64", "option": "x64"}, + { "name": "x86", "option": "win32"}, + { "name": "arm64", "option": "arm64"}, + ] env: CMAKE_OPTIONS: -DCMAKE_CXX_EXTENSIONS=OFF CMAKE_MATROSKA_OPTIONS: ${{ env.CMAKE_OPTIONS }} -DBUILD_EXAMPLES=ON @@ -34,7 +39,7 @@ jobs: # minimum version we support ref: 'release-1.4.3' - name: Configure ${{ matrix.shared.name }} libebml - run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} + run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }} -A ${{ matrix.arch.option }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} - name: Build libebml run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel @@ -43,7 +48,7 @@ jobs: run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built - name: Configure ${{ matrix.shared.name }} library - run: cmake -S . -B _build ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} + run: cmake -S . -B _build ${{ env.CMAKE_MATROSKA_OPTIONS }} -A ${{ matrix.arch.option }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} - name: Build run: cmake --build _build --config ${{ matrix.config }} --parallel