Skip to content

Commit aac2028

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

File tree

1 file changed

+46
-5
lines changed

1 file changed

+46
-5
lines changed

.github/workflows/ubuntu-20.04.yaml

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,57 @@ on:
66
# branches: [ master ]
77

88
jobs:
9-
Oldest:
9+
GCC-7:
1010
runs-on: ubuntu-20.04
11-
strategy:
12-
matrix:
13-
cxx: ['g++', 'clang++-10']
1411
env:
1512
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
1613
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
17-
CXX: ${{matrix.cxx}}
1814
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
59+
1960
- name: list compilers
2061
run: dpkg --list | grep compiler
2162

0 commit comments

Comments
 (0)