Skip to content

Commit

Permalink
ci: add windows x86 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
res0nance committed Sep 20, 2023
1 parent b8a0bc7 commit 122d838
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .CMake/toolchain_windows_amd64.cmake
Original file line number Diff line number Diff line change
@@ -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
)
12 changes: 12 additions & 0 deletions .CMake/toolchain_windows_x86.cmake
Original file line number Diff line number Diff line change
@@ -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
)
13 changes: 13 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 122d838

Please sign in to comment.