|
6 | 6 | # branches: [ master ] |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - GCC-7: |
| 9 | + Oldest: |
10 | 10 | runs-on: ubuntu-20.04 |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + compiler: [ |
| 14 | + { "name": "gcc", "version": "7", "cpp": "g++"}, |
| 15 | + { "name": "clang", "version": "7", "cpp": "clang++"}, |
| 16 | + ] |
11 | 17 | env: |
12 | 18 | CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON |
13 | 19 | CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON |
| 20 | + CXX: ${{ matrix.compiler.cpp }}-${{ matrix.compiler.version }} |
14 | 21 | steps: |
15 | | - - uses: egor-tensin/setup-gcc@v1 |
16 | | - with: |
17 | | - version: 7 |
18 | | - |
19 | | - - name: list compilers |
20 | | - run: dpkg --list | grep compiler |
21 | | - |
22 | | - - name: Get pushed code |
23 | | - uses: actions/checkout@v4 |
24 | | - |
25 | | - - name: Checkout libebml |
26 | | - uses: actions/checkout@v4 |
27 | | - with: |
28 | | - repository: Matroska-Org/libebml |
29 | | - path: libebml |
30 | | - # minimum version we support ref: 'release-1.4.3' |
31 | | - |
32 | | - - name: Configure libebml |
33 | | - run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }} |
34 | | - |
35 | | - - name: Build libebml |
36 | | - run: cmake --build libebml/_build --parallel |
37 | | - |
38 | | - - name: Install libebml |
39 | | - run: cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built |
40 | | - |
41 | | - - name: Configure |
42 | | - run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" |
43 | | - |
44 | | - - name: Build |
45 | | - run: cmake --build _build --parallel |
46 | | - |
47 | | - - name: Test installation |
48 | | - run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built |
49 | | - |
50 | | - Clang-7: |
51 | | - runs-on: ubuntu-20.04 |
52 | | - env: |
53 | | - CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON |
54 | | - CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON |
55 | | - steps: |
56 | | - - uses: egor-tensin/setup-clang@v1 |
57 | | - with: |
58 | | - version: 7 |
| 22 | + # - uses: egor-tensin/setup-gcc@v1 |
| 23 | + # with: |
| 24 | + # version: 7 |
| 25 | + |
| 26 | + - name: Install |
| 27 | + # we need the apt update because old packages won't load |
| 28 | + run: | |
| 29 | + # sudo apt update |
| 30 | + sudo apt install ${{ matrix.compiler.name }}-${{ matrix.compiler.version }} |
59 | 31 |
|
60 | 32 | - name: list compilers |
61 | 33 | run: dpkg --list | grep compiler |
|
0 commit comments