2020-11-15 20:54:48 +00:00
|
|
|
name: windows
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{matrix.config.os}}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- { os: windows-2019, vs: "Visual Studio 2019" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#visual-studio-enterprise-2019
|
2022-01-23 15:38:38 +00:00
|
|
|
- { os: windows-2022, vs: "Visual Studio 2022" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#visual-studio-enterprise-2022
|
2020-11-15 20:54:48 +00:00
|
|
|
|
2022-08-12 17:38:40 +00:00
|
|
|
name: "${{matrix.config.vs}}"
|
2020-11-15 20:54:48 +00:00
|
|
|
steps:
|
2023-01-26 23:50:25 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-15 20:54:48 +00:00
|
|
|
|
2022-08-12 17:38:40 +00:00
|
|
|
- name: Build Win32
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
rm -rf build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. -A Win32
|
|
|
|
cmake --build . --config Release
|
|
|
|
ctest --output-on-failure -C Release
|
|
|
|
cmake --build . --config Debug
|
|
|
|
ctest --output-on-failure -C Debug
|
2020-11-15 20:54:48 +00:00
|
|
|
|
2022-08-12 17:38:40 +00:00
|
|
|
- name: Build x64
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
rm -rf build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. -A x64
|
|
|
|
cmake --build . --config Release
|
|
|
|
ctest --output-on-failure -C Release
|
|
|
|
cmake --build . --config Debug
|
|
|
|
ctest --output-on-failure -C Debug
|
2020-11-15 20:54:48 +00:00
|
|
|
|