replace CMAKE_SOURCE_DIR with CMAKE_CURRENT_SOURCE_DIR #25
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 Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Build-Windows: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: CMake build | |
run: | | |
mkdir cmake_build | |
cd cmake_build | |
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -A x64 .. | |
cmake --build . --config Release --parallel | |
ctest --output-on-failure |