Skip to content

Commit 259c413

Browse files
committed
fixup! CI: add a target with older Ubuntu to test older compilers
1 parent aac2028 commit 259c413

File tree

1 file changed

+17
-45
lines changed

1 file changed

+17
-45
lines changed

.github/workflows/ubuntu-20.04.yaml

Lines changed: 17 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,28 @@ on:
66
# branches: [ master ]
77

88
jobs:
9-
GCC-7:
9+
Oldest:
1010
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+
]
1117
env:
1218
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
1319
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
20+
CXX: ${{ matrix.compiler.cpp }}-${{ matrix.compiler.version }}
1421
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.cpp }}-${{ matrix.compiler.version }}
5931
6032
- name: list compilers
6133
run: dpkg --list | grep compiler

0 commit comments

Comments
 (0)