Update README.md #5
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: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup MSVC | |
uses: microsoft/setup-msbuild@v1.0.2 | |
with: | |
vs-version: 'latest' | |
- name: Install CMake | |
run: | | |
choco install cmake --version=3.23.0 | |
echo "CMake installed." | |
- name: Configure CMake | |
run: cmake -S . -B build -G "Visual Studio 17 2022" | |
- name: Build with MSBuild | |
run: cmake --build build --config Release | |
- name: Run tests | |
run: | | |
cd build | |
ctest --output-on-failure |