|
13 | 13 | strategy: |
14 | 14 | fail-fast: false |
15 | 15 | matrix: |
16 | | - python-version: ['3.14'] |
| 16 | + python-version: ['2.7', '3.14'] |
17 | 17 | cxx: [g++, clang++] |
18 | 18 | std: [c++11, c++14, c++17] |
19 | 19 | include: |
|
34 | 34 | steps: |
35 | 35 | - uses: actions/checkout@v5 |
36 | 36 | - name: setup python |
| 37 | + if: "${{ matrix.python-version != '2.7' }}" |
37 | 38 | uses: actions/setup-python@v5 |
38 | 39 | with: |
39 | 40 | python-version: ${{ matrix.python-version }} |
|
42 | 43 | echo "CXX=${{ matrix.cxx }}" >> "$GITHUB_ENV" |
43 | 44 | echo "CXX_STD=${{ matrix.std }}" >> "$GITHUB_ENV" |
44 | 45 | - name: build |
| 46 | + if: "${{ matrix.python-version != '2.7' }}" |
45 | 47 | run: | |
46 | 48 | .github/run-faber.sh |
| 49 | + - name: build |
| 50 | + if: "${{ matrix.python-version == '2.7' }}" |
| 51 | + run: | |
| 52 | + ${{ matrix.python }} --version |
| 53 | + ${{ matrix.cxx }} --version |
| 54 | + faber -v |
| 55 | + sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber |
| 56 | + faber \ |
| 57 | + --with-boost-include=${BOOST_PY_DEPS} \ |
| 58 | + --builddir=build \ |
| 59 | + cxx.name=${{ matrix.cxx }} \ |
| 60 | + cxxflags=-std=${{ matrix.std }} \ |
| 61 | + cppflags=-std=${{ matrix.std }} \ |
| 62 | + -j`nproc` |
47 | 63 | - name: test |
| 64 | + if: "${{ matrix.python-version != '2.7' }}" |
48 | 65 | run: | |
49 | 66 | .github/run-faber.sh test.report |
| 67 | + - name: test |
| 68 | + if: "${{ matrix.python-version == '2.7' }}" |
| 69 | + run: | |
| 70 | + faber \ |
| 71 | + --with-boost-include=${BOOST_PY_DEPS} \ |
| 72 | + --builddir=build \ |
| 73 | + cxx.name=${{ matrix.cxx }} \ |
| 74 | + cxxflags=-std=${{ matrix.std }} \ |
| 75 | + cppflags=-std=${{ matrix.std }} \ |
| 76 | + -j`nproc` \ |
| 77 | + test.report |
0 commit comments