11
11
env :
12
12
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
13
13
BUILD_TYPE : Release
14
+ CMAKE_GENERATOR : Ninja
14
15
15
16
jobs :
16
17
build :
20
21
os : [ubuntu-latest, windows-latest, macos-latest]
21
22
with_rust : ['true', 'false']
22
23
rust_version : ['1.70', 'stable']
24
+ include :
25
+ - os : ubuntu-latest
26
+ c_compiler : cc
27
+ - os : windows-latest
28
+ c_compiler : cl.exe
29
+ - os : macos-latest
30
+ c_compiler : cc
23
31
exclude :
24
32
- with_rust : ' false'
25
33
rust_version : ' stable'
@@ -31,12 +39,23 @@ jobs:
31
39
with :
32
40
submodules : ' true'
33
41
42
+ - if : ${{ matrix.os == 'ubuntu-latest' }}
43
+ run : sudo apt-get install ninja-build
44
+ - if : ${{ matrix.os == 'macos-latest' }}
45
+ run : brew install ninja
46
+ - if : ${{ matrix.os == 'windows-latest' }}
47
+ run : choco install ninja
48
+ - if : ${{ matrix.os == 'windows-latest' }}
49
+ uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
50
+
34
51
- name : Setup rustup
35
52
run : |
36
53
rustup default ${{ matrix.rust_version }}
37
54
rustup update
38
55
39
56
- name : Build
57
+ env :
58
+ CC : ${{ matrix.c_compiler }}
40
59
run : cargo xtask build --build-type ${{env.BUILD_TYPE}} --with-rust ${{matrix.with_rust}} --verbose true
41
60
42
61
- name : Test
50
69
with :
51
70
submodules : ' true'
52
71
72
+ - run : sudo apt-get install ninja-build
73
+
53
74
- name : Build
54
75
run : cargo xtask build --build-type ${{env.BUILD_TYPE}} --with-rust false --with-hash true --verbose true
55
76
@@ -61,13 +82,15 @@ jobs:
61
82
matrix :
62
83
with_rust : ['true', 'false']
63
84
runs-on : ubuntu-latest
64
- name : with_rust=${{ matrix.with_rust }}
85
+ name : Coverage with_rust=${{ matrix.with_rust }}
65
86
66
87
steps :
67
88
- uses : actions/checkout@v3
68
89
with :
69
90
submodules : ' true'
70
91
92
+ - run : sudo apt-get install ninja-build
93
+
71
94
- name : Setup rustup
72
95
run : |
73
96
rustup default stable
0 commit comments