16
16
matrix :
17
17
runs-on : [ubuntu-latest, windows-latest, macos-latest]
18
18
arch : [x64]
19
- max-cxx-std : [17]
20
19
python :
21
20
- 2.7
22
21
- 3.5
@@ -28,56 +27,47 @@ jobs:
28
27
- runs-on : ubuntu-latest
29
28
python : 3.6
30
29
arch : x64
31
- max-cxx-std : 17
32
- args : " -DPYBIND11_FINDPYTHON=ON"
33
- - runs-on : macos-latest
34
- python : 3.7
35
- arch : x64
36
- max-cxx-std : 17
37
- args : " -DPYBIND11_FINDPYTHON=ON"
30
+ args : >
31
+ -DPYBIND11_FINDPYTHON=ON
38
32
- runs-on : windows-2016
39
33
python : 3.7
40
34
arch : x86
41
- max-cxx-std : 14
35
+ args2 : >
36
+ -DCMAKE_CXX_FLAGS="/permissive- /EHsc /GR"
42
37
- runs-on : windows-latest
43
38
python : 3.6
44
39
arch : x64
45
- max-cxx-std : 17
46
- args : " -DPYBIND11_FINDPYTHON=ON"
40
+ args : >
41
+ -DPYBIND11_FINDPYTHON=ON
47
42
- runs-on : windows-latest
48
43
python : 3.7
49
44
arch : x64
50
- max-cxx-std : 17
51
45
52
46
- runs-on : ubuntu-latest
53
47
python : 3.9-dev
54
48
arch : x64
55
- max-cxx-std : 17
56
49
- runs-on : macos-latest
57
50
python : 3.9-dev
58
51
arch : x64
59
- max-cxx-std : 17
52
+ args : >
53
+ -DPYBIND11_FINDPYTHON=ON
60
54
61
55
exclude :
62
56
# Currently 32bit only, and we build 64bit
63
57
- runs-on : windows-latest
64
58
python : pypy2
65
59
arch : x64
66
- max-cxx-std : 17
67
60
- runs-on : windows-latest
68
61
python : pypy3
69
62
arch : x64
70
- max-cxx-std : 17
71
63
72
64
# Currently broken on embed_test
73
65
- runs-on : windows-latest
74
66
python : 3.8
75
67
arch : x64
76
- max-cxx-std : 17
77
68
- runs-on : windows-latest
78
69
python : 3.9-dev
79
70
arch : x64
80
- max-cxx-std : 17
81
71
82
72
83
73
name : " 🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • ${{ matrix.arch }} ${{ matrix.args }}"
92
82
python-version : ${{ matrix.python }}
93
83
architecture : ${{ matrix.arch }}
94
84
95
- - name : Setup Boost
96
- if : runner.os != 'macOS'
85
+ - name : Setup Boost (Windows / Linux latest)
97
86
run : echo "::set-env name=BOOST_ROOT::$BOOST_ROOT_1_72_0"
98
87
99
88
- name : Update CMake
@@ -113,8 +102,7 @@ jobs:
113
102
- name : Prepare env
114
103
run : python -m pip install -r tests/requirements.txt --prefer-binary
115
104
116
- - name : Configure C++11 ${{ matrix.args }}
117
- shell : bash
105
+ - name : Configure C++11 ${{ matrix.args1 }}
118
106
run : >
119
107
cmake -S . -B .
120
108
-DPYBIND11_WERROR=ON
@@ -138,26 +126,26 @@ jobs:
138
126
- name : Clean directory
139
127
run : git clean -fdx
140
128
141
- - name : Configure C++${{ matrix.max-cxx-std }} ${{ matrix.args }}
142
- shell : bash
129
+ - name : Configure ${{ matrix.args2 }}
143
130
run : >
144
131
cmake -S . -B build2
145
132
-DPYBIND11_WERROR=ON
146
133
-DDOWNLOAD_CATCH=ON
147
134
-DDOWNLOAD_EIGEN=ON
148
- -DCMAKE_CXX_STANDARD=${{ matrix.max-cxx-std }}
135
+ -DCMAKE_CXX_STANDARD=17
149
136
${{ matrix.args }}
137
+ ${{ matrix.args2 }}
150
138
151
- - name : Build C++${{ matrix.max-cxx-std }}
139
+ - name : Build
152
140
run : cmake --build build2 -j 2
153
141
154
- - name : Python tests C++${{ matrix.max-cxx-std }}
142
+ - name : Python tests
155
143
run : cmake --build build2 --target pytest
156
144
157
- - name : C++${{ matrix.max-cxx-std }} tests
145
+ - name : C++ tests
158
146
run : cmake --build build2 --target cpptest
159
147
160
- - name : Interface test C++${{ matrix.max-cxx-std }}
148
+ - name : Interface test
161
149
run : cmake --build build2 --target test_cmake_build
162
150
163
151
clang :
0 commit comments