Skip to content

Commit a5ad4f0

Browse files
committed
CI: build Linux with the latest image and latest compilers
1 parent 475b71b commit a5ad4f0

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

.github/workflows/linux.yaml

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

88
jobs:
9-
Linux-GCC:
10-
runs-on: ubuntu-20.04
9+
Latest:
10+
runs-on: ubuntu-24.04
1111
strategy:
1212
matrix:
13-
cxx: ['7', '13']
13+
cxx: ['g++-14', 'clang++-18']
1414
env:
1515
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
1616
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
17+
CXX: ${{matrix.cxx}}
1718
steps:
18-
- uses: egor-tensin/setup-gcc@v1
19-
with:
20-
version: ${{matrix.cxx}}
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-
- uses: egor-tensin/setup-clang@v1
60-
with:
61-
version: ${{matrix.cxx}}
62-
63-
- name: Install libc++
64-
run: |
65-
sudo apt install -y libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev
66-
6719
- name: Get pushed code
6820
uses: actions/checkout@v4
6921

0 commit comments

Comments
 (0)