Skip to content

Commit 62c0962

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

File tree

1 file changed

+1
-89
lines changed

1 file changed

+1
-89
lines changed

.github/workflows/ubuntu-20.04.yaml

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
cxx: ['g++-9', 'llvm-12']
13+
cxx: ['g++', 'clang-10']
1414
env:
1515
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
1616
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
@@ -46,91 +46,3 @@ jobs:
4646

4747
- name: Test installation
4848
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)