test: add option to build 32-bit on the auto workflow #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows CMake Build & Test | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install MinGW | |
run: | | |
choco install mingw --version=12.2.0 -y | |
echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $GITHUB_PATH | |
gcc --version | |
- name: Build for 32-bit | |
run: | | |
mkdir __build__ | |
cd __build__ | |
cmake -S.. -T host=x86 -A Win32 | |
cmake --build . | |
- name: Run Tests | |
working-directory: __build__ | |
run: | | |
ctest . --output-on-failure -C Debug |