Merge pull request #81 from lss1330/lss1330-patch-1 #66
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: CMake Build Windows | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
VCPKG_FILE: c:/vcpkg/scripts/buildsystems/vcpkg.cmake | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: CMAKE Configure | |
run: > | |
cmake -B ${{github.workspace}}/build | |
-D MDF_BUILD_TOOL=OFF -D MDF_BUILD_TEST=ON -D MDF_BUILD_SHARED_LIB=ON | |
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
-D CMAKE_TOOLCHAIN_FILE=${{env.VCPKG_FILE}} | |
- name: CMake Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Unit Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
... |