From c0f130c7b343c7507ea7678ee42763acedd7a08f Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 28 Mar 2025 11:29:43 -0700 Subject: [PATCH] add Win32 build configurations to GitHub actions CI --- .github/workflows/build.yml | 14 ++++++++++++-- .github/workflows/release.yml | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4f721a2..ab43d661 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,12 @@ jobs: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, macos-latest] + include: + - os: windows-latest + windows-arch: x64 + - os: windows-latest + windows-arch: Win32 runs-on: ${{matrix.os}} @@ -48,7 +53,12 @@ jobs: - name: Run CMake shell: bash working-directory: ${{runner.workspace}}/build - run: cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE + run: | + if [[ "${{ matrix.os }}" == "windows-latest" ]]; then + cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A ${{ matrix.windows-arch }} $GITHUB_WORKSPACE + else + cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE + fi - name: Build working-directory: ${{runner.workspace}}/build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e84c36b4..1a95a0e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,12 @@ jobs: release: strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] + include: + - os: windows-latest + windows-arch: x64 + - os: windows-latest + windows-arch: Win32 runs-on: ${{matrix.os}} @@ -42,7 +47,12 @@ jobs: - name: Run CMake shell: bash working-directory: ./build - run: cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE + run: | + if [[ "${{ matrix.os }}" == "windows-latest" ]]; then + cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A ${{ matrix.windows-arch }} $GITHUB_WORKSPACE + else + cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE + fi - name: Build working-directory: ./build