88 name : ${{matrix.name}} (${{matrix.config}})
99 runs-on : ${{matrix.os}}
1010
11+ env :
12+ CMAKE_GENERATOR : Ninja
13+
1114 strategy :
1215 fail-fast : false
1316 matrix :
@@ -26,72 +29,68 @@ jobs:
2629 - name : windows-2019-msvc2019
2730 os : windows-2019
2831 compiler : cl
29- version : Visual Studio 16 2019
30- architecture : -A x64
32+ architecture : x64
3133
3234 - name : windows-2019-msvc2019-win32
3335 os : windows-2019
3436 compiler : cl
35- version : Visual Studio 16 2019
36- architecture : -A Win32
37+ architecture : x86
3738
3839 - name : windows-2019-msvc2019-arm64
3940 os : windows-2019
4041 compiler : cl
41- version : Visual Studio 16 2019
42- architecture : -A ARM64
42+ architecture : x64_arm64
4343
4444 - name : windows-2019-msvc2019-clang
4545 os : windows-2019
4646 compiler : clang-cl
47- version : Visual Studio 16 2019
48- architecture : -A x64
49- toolchain : -T ClangCl
47+ architecture : x64
5048
5149 - name : windows-2022-msvc2022
5250 os : windows-2022
5351 compiler : cl
54- version : Visual Studio 17 2022
55- architecture : -A x64
52+ architecture : x64
5653
5754 - name : windows-2022-msvc2022-win32
5855 os : windows-2022
5956 compiler : cl
60- version : Visual Studio 17 2022
61- architecture : -A Win32
57+ architecture : x86
6258
6359 - name : windows-2022-msvc2022-arm64
6460 os : windows-2022
6561 compiler : cl
66- version : Visual Studio 17 2022
67- architecture : -A ARM64
62+ architecture : x64_arm64
6863
6964 - name : windows-2022-msvc2022-clang
7065 os : windows-2022
7166 compiler : clang-cl
72- version : Visual Studio 17 2022
73- architecture : -A x64
74- toolchain : -T ClangCl
67+ architecture : x64
7568
7669 steps :
7770 - uses : actions/checkout@v3
71+ - uses : ilammy/msvc-dev-cmd@v1
72+ with :
73+ arch : ${{matrix.architecture}}
7874
7975 - name : Dependencies
80- run : choco install doxygen.install graphviz -y
76+ run : |
77+ choco install doxygen.install graphviz ninja -y
78+ echo "CC=${{matrix.compiler}}" >> $env:GITHUB_ENV
79+ echo "CXX=${{matrix.compiler}}" >> $env:GITHUB_ENV
8180
8281 - name : Create Build Environment
8382 run : cmake -E make_directory ${{runner.workspace}}/build
8483
8584 - name : Configure CMake
8685 working-directory : ${{runner.workspace}}/build
87- run : cmake $env:GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE:STRING=${{matrix.config}} -G"${{matrix.version}}" ${{matrix.architecture}} ${{matrix.toolchain}}
86+ run : cmake $env:GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE:STRING=${{matrix.config}}
8887
8988 - name : Build
9089 working-directory : ${{runner.workspace}}/build
9190 run : cmake --build . --config ${{matrix.config}}
9291
9392 - name : Test
94- if : matrix.architecture != '-A ARM64 '
93+ if : matrix.architecture != 'x64_arm64 '
9594 working-directory : ${{runner.workspace}}/build
9695 run : ctest --output-on-failure -C ${{matrix.config}}
9796
0 commit comments