change github action ubuntu version 18.04 -> latest #162
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
windows-msvc: | |
runs-on: windows-2019 | |
env: | |
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON" | |
strategy: | |
matrix: | |
build-type: ["Release", "Debug"] | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: CMake build | |
run: | | |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}}. | |
cd build | |
cmake --build . --config ${{matrix.build-type}} | |
- name: Run Test Script | |
run: | | |
cd build | |
ctest . |