1313
1414jobs :
1515 compiler_matrix :
16+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1617 runs-on : ubuntu-24.04
1718 strategy :
1819 fail-fast : false
@@ -48,11 +49,41 @@ jobs:
4849 uses : actions/checkout@v2
4950
5051 - name : CMake Configure
51- run : cmake -B ${{github.workspace}}/build -G"Ninja" -DINT_TREE_BUILD_EXAMPLES=on -DINT_TREE_ENABLE_TESTS=on -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }}
52+ run : cmake -B ${{github.workspace}}/build -G"Ninja" -DINT_TREE_USE_OPTIONAL_POLYFILL=on - DINT_TREE_BUILD_EXAMPLES=on -DINT_TREE_ENABLE_TESTS=on -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }}
5253
5354 - name : Build
5455 run : cmake --build ${{github.workspace}}/build
5556
5657 - name : Test
5758 working-directory : ${{github.workspace}}/build
58- run : ./tests/tree-tests
59+ run : ./tests/tree-tests
60+
61+ msvc :
62+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
63+ runs-on : windows-latest
64+ steps :
65+ - name : Checkout
66+ uses : actions/checkout@v2
67+
68+ - name : Setup MSVC
69+ uses : microsoft/setup-msbuild@v1.0.2
70+
71+ - name : Install vcpkg and gtest
72+ run : |
73+ git clone https://github.com/microsoft/vcpkg.git
74+ .\vcpkg\bootstrap-vcpkg.bat
75+ .\vcpkg\vcpkg.exe install gtest
76+ shell : pwsh
77+ env :
78+ VCPKG_DEFAULT_TRIPLET : x64-windows
79+
80+ - name : CMake Configure
81+ run : cmake -B ${{github.workspace}}/build -G"Visual Studio 17 2022" -A x64 -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_STANDARD=20 -DINT_TREE_USE_OPTIONAL_POLYFILL=on -DINT_TREE_BUILD_EXAMPLES=on -DINT_TREE_ENABLE_TESTS=on -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
82+
83+ - name : Build
84+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
85+
86+ - name : Test
87+ working-directory : ${{github.workspace}}/build
88+ run : .\tests\Release\tree-tests.exe
89+ shell : cmd
0 commit comments