From 088d14f89417348f98d2c025262f681b0714ac31 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Sat, 26 Apr 2025 19:14:52 +0200 Subject: [PATCH] chore: add x64 build to ci --- .github/workflows/ci.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68a7a71f..047661c3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,9 @@ on: jobs: build-test-linux: + strategy: + matrix: + build_arch: [x86, x64] runs-on: ubuntu-latest container: ubuntu:24.04 steps: @@ -35,10 +38,10 @@ jobs: - name: Build working-directory: ${{ github.workspace }} - run: make -C build -j$(nproc) config=release_x86 all + run: make -C build -j$(nproc) config=release_${{ matrix.build_arch }} all - name: Test - working-directory: ${{ github.workspace }}/build/lib/Release_x86/tests + working-directory: ${{ github.workspace }}/build/lib/Release_${{ matrix.build_arch }}/tests run: | ./ObjCommonTests ./ObjCompilingTests @@ -48,6 +51,14 @@ jobs: ./ZoneCommonTests build-test-windows: + strategy: + matrix: + build_arch: [x86, x64] + include: + - build_arch: x86 + msbuild_config: Win32 + - build_arch: x64 + msbuild_config: x64 runs-on: windows-latest steps: - name: Checkout repository @@ -66,10 +77,10 @@ jobs: - name: Build working-directory: ${{ github.workspace }} - run: msbuild /m /p:Configuration=Release /p:Platform=Win32 build + run: msbuild /m /p:Configuration=Release /p:Platform=${{ matrix.msbuild_config }} build - name: Test - working-directory: ${{ github.workspace }}/build/lib/Release_x86/tests + working-directory: ${{ github.workspace }}/build/lib/Release_${{ matrix.build_arch }}/tests run: | $combinedExitCode = 0 ./ObjCommonTests