@@ -10,22 +10,31 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
os : [
13
- windows-2019, # 2022's installation is broken for C++ modules
14
13
windows-latest,
15
14
# macos-latest, # cppfront is currently broken on AppleClang
16
15
ubuntu-latest,
17
16
]
17
+ include :
18
+ - os : windows-latest
19
+ gen : Visual Studio 17 2022
20
+ flags : /experimental:module
21
+ - os : ubuntu-latest
22
+ gen : Ninja
23
+ flags : " "
24
+ env :
25
+ CMAKE_GENERATOR : ${{ matrix.gen }}
26
+ CXXFLAGS : ${{ matrix.flags }}
18
27
runs-on : ${{ matrix.os }}
19
28
steps :
20
29
# System set-up
21
30
- uses : actions/checkout@v3
22
31
with :
23
32
submodules : true
24
-
33
+
25
34
- uses : lukka/get-cmake@latest
26
35
27
36
- name : Install GCC 11
28
- if : startsWith(matrix .os, 'ubuntu')
37
+ if : runner .os == 'Linux'
29
38
run : |
30
39
sudo apt-get update
31
40
sudo apt-get install -y gcc-11 g++-11
34
43
35
44
# Main cppfront library
36
45
- name : Configure cppfront
37
- run : cmake -G Ninja - S . -B build/cppfront -DCMAKE_BUILD_TYPE=Release
46
+ run : cmake -S . -B build/cppfront -DCMAKE_BUILD_TYPE=Release
38
47
- name : Build cppfront
39
48
run : cmake --build build/cppfront --config Release
40
49
- name : Install cppfront locally
43
52
# Regression tests
44
53
- name : Configure regression tests
45
54
run : >
46
- cmake -G Ninja - S regression-tests -B build/regression-tests -DCMAKE_BUILD_TYPE=Release
55
+ cmake -S regression-tests -B build/regression-tests -DCMAKE_BUILD_TYPE=Release
47
56
"-DCMAKE_PREFIX_PATH=${{github.workspace}}/_local"
48
57
- name : Build regression tests
49
58
run : cmake --build build/regression-tests --config Release
54
63
# Example
55
64
- name : Configure example
56
65
run : >
57
- cmake -G Ninja - S example -B build/example -DCMAKE_BUILD_TYPE=Release
66
+ cmake -S example -B build/example -DCMAKE_BUILD_TYPE=Release
58
67
"-DCMAKE_PREFIX_PATH=${{github.workspace}}/_local"
59
68
- name : Build example
60
69
run : cmake --build build/example --config Release
0 commit comments