13
13
14
14
jobs :
15
15
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
16
17
runs-on : ubuntu-24.04
17
18
strategy :
18
19
fail-fast : false
@@ -48,11 +49,41 @@ jobs:
48
49
uses : actions/checkout@v2
49
50
50
51
- 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 }}
52
53
53
54
- name : Build
54
55
run : cmake --build ${{github.workspace}}/build
55
56
56
57
- name : Test
57
58
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
+
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