let unit test run successfully #12
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
# Template: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml | |
name: Build On Windows | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Conan | |
run: | | |
pip install conan==2.6.0 | |
conan profile detect | |
- name: Configure CMake | |
working-directory: ${{github.workspace}} | |
run: | | |
conan install . --build=missing | |
cmake --preset cmake-project-default -DWITH_GTEST=ON | |
- name: Build Targets | |
working-directory: ${{github.workspace}} | |
run: cmake --build --preset cmake-project-release | |
- name: Run Unit Test | |
working-directory: ${{github.workspace}} | |
run: | | |
cmake --build --preset cmake-project-release -t tests | |
.\build\test\Release\gtest-testrun.exe |