From 122d838a64ae8057f928edac0a02cb20cb0b0ebe Mon Sep 17 00:00:00 2001 From: res0nance Date: Wed, 20 Sep 2023 20:54:15 +0800 Subject: [PATCH] ci: add windows x86 builds --- .CMake/toolchain_windows_amd64.cmake | 12 ++++++++++++ .CMake/toolchain_windows_x86.cmake | 12 ++++++++++++ .github/workflows/windows.yml | 13 +++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .CMake/toolchain_windows_amd64.cmake create mode 100644 .CMake/toolchain_windows_x86.cmake diff --git a/.CMake/toolchain_windows_amd64.cmake b/.CMake/toolchain_windows_amd64.cmake new file mode 100644 index 0000000000..60a0dca90e --- /dev/null +++ b/.CMake/toolchain_windows_amd64.cmake @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: MIT + +set(CMAKE_SYSTEM_NAME Windows) + +set(CMAKE_SYSTEM_PROCESSOR AMD64) + +set(CMAKE_CROSSCOMPILING OFF) + +set(CMAKE_GENERATOR_PLATFORM + x64 + CACHE STRING "Platform" FORCE +) diff --git a/.CMake/toolchain_windows_x86.cmake b/.CMake/toolchain_windows_x86.cmake new file mode 100644 index 0000000000..3279e39770 --- /dev/null +++ b/.CMake/toolchain_windows_x86.cmake @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: MIT + +set(CMAKE_SYSTEM_NAME Windows) + +set(CMAKE_SYSTEM_PROCESSOR x86) + +set(CMAKE_CROSSCOMPILING OFF) + +set(CMAKE_GENERATOR_PLATFORM + Win32 + CACHE STRING "Platform" FORCE +) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f7faed97bb..da0dfa8c17 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,3 +12,16 @@ jobs: run: cmake -B build --toolchain .CMake/toolchain_windows_arm64.cmake . - name: Build Project run: cmake --build build + + windows-x86: + runs-on: windows-2022 + strategy: + fail-fast: false + matrix: + toolchain: [.CMake/toolchain_windows_x86.cmake, .CMake/toolchain_windows_amd64.cmake] + steps: + - uses: actions/checkout@v3 + - name: Generate Project + run: cmake -B build --toolchain ${{ matrix.toolchain }} . + - name: Build Project + run: cmake --build build