File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Configure
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ push :
7+ branches :
8+ - master
9+ - stable
10+ - v*
11+
12+ jobs :
13+ cmake :
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ python :
18+ - 2.7
19+ - 3.8
20+
21+ name : CMake ${{ matrix.cmake }} Python ${{ matrix.python }} on ubuntu
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+
27+ - name : Setup Python ${{ matrix.python }}
28+ uses : actions/setup-python@v2
29+ with :
30+ python-version : ${{ matrix.python }}
31+
32+ - name : Prepare env
33+ run : python -m pip install -r tests/requirements.txt
34+
35+ - name : Make build directories
36+ run : |
37+ mkdir build2.8
38+ mkdir build3.7
39+ mkdir build3.18
40+
41+ - name : Setup CMake 2.8
42+ 43+ with :
44+ cmake-version : 2.8
45+
46+ - name : Configure 2.8
47+ working-directory : build2.8
48+ run : >
49+ cmake --version &&
50+ cmake ..
51+ -DPYBIND11_WERROR=ON
52+ -DDOWNLOAD_CATCH=ON
53+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
54+
55+ - name : Setup CMake 3.7
56+ 57+ with :
58+ cmake-version : 3.7
59+
60+ - name : Configure 3.7
61+ working-directory : build3.7
62+ run : >
63+ cmake --version &&
64+ cmake ..
65+ -DPYBIND11_WERROR=ON
66+ -DDOWNLOAD_CATCH=ON
67+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
68+
69+ - name : Setup CMake 3.18
70+ 71+ with :
72+ cmake-version : 3.18
73+
74+ - name : Configure 3.18
75+ working-directory : build3.18
76+ run : >
77+ cmake --version &&
78+ cmake ..
79+ -DPYBIND11_WERROR=ON
80+ -DDOWNLOAD_CATCH=ON
81+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
You can’t perform that action at this time.
0 commit comments