Skip to content

Commit 8ae2422

Browse files
committed
CI: add a target with older Ubuntu to test older compilers
1 parent baad97d commit 8ae2422

File tree

1 file changed

+136
-0
lines changed

1 file changed

+136
-0
lines changed
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
name: "Linux legacy"
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
# branches: [ master ]
7+
8+
jobs:
9+
Linux-Legacy:
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
cxx: ['g++-9', 'llvm-12']
14+
env:
15+
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
16+
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
17+
CXX: ${{matrix.cxx}}
18+
steps:
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+
Linux-Clang:
51+
runs-on: ubuntu-20.04
52+
strategy:
53+
matrix:
54+
cxx: ['7', '18']
55+
env:
56+
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS="-stdlib=libc++"
57+
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
58+
steps:
59+
- name: Install libc++
60+
run: |
61+
sudo apt install -y libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev
62+
63+
- name: Get pushed code
64+
uses: actions/checkout@v4
65+
66+
- name: Checkout libebml
67+
uses: actions/checkout@v4
68+
with:
69+
repository: Matroska-Org/libebml
70+
path: libebml
71+
# minimum version we support ref: 'release-1.4.3'
72+
73+
- name: Configure libebml
74+
run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }}
75+
76+
- name: Build libebml
77+
run: cmake --build libebml/_build --parallel
78+
79+
- name: Install libebml
80+
run: cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built
81+
82+
- name: Configure
83+
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
84+
85+
- name: Build
86+
run: cmake --build _build --parallel
87+
88+
- name: Test installation
89+
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
90+
91+
Alpine:
92+
runs-on: ubuntu-latest
93+
strategy:
94+
matrix:
95+
platform: ['armhf']
96+
env:
97+
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
98+
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
99+
defaults:
100+
run:
101+
shell: alpine.sh {0}
102+
steps:
103+
- name: Get pushed code
104+
uses: actions/checkout@v4
105+
106+
- uses: jirutka/setup-alpine@v1
107+
with:
108+
branch: edge
109+
arch: ${{matrix.platform}}
110+
packages: >
111+
build-base cmake
112+
113+
- name: Checkout libebml
114+
uses: actions/checkout@v4
115+
with:
116+
repository: Matroska-Org/libebml
117+
path: libebml
118+
# minimum version we support ref: 'release-1.4.3'
119+
120+
- name: Configure libebml
121+
run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }}
122+
123+
- name: Build libebml
124+
run: cmake --build libebml/_build --parallel
125+
126+
- name: Install libebml
127+
run: cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built
128+
129+
- name: Configure
130+
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
131+
132+
- name: Build
133+
run: cmake --build _build --parallel
134+
135+
- name: Test installation
136+
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built

0 commit comments

Comments
 (0)