@@ -47,62 +47,20 @@ jobs:
4747 - name : Test installation
4848 run : cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
4949
50- GCC-7 :
50+ Oldest :
5151 runs-on : ubuntu-20.04
52+ strategy :
53+ matrix :
54+ cxx : ['g++-7', 'clang++-7']
5255 env :
5356 CMAKE_OPTIONS : -DDEV_MODE=ON -DBUILD_TESTING=ON
5457 CMAKE_MATROSKA_OPTIONS : -DBUILD_EXAMPLES=ON
55- CC : gcc-7
56- CXX : g++-7
58+ CXX : ${{matrix.cxx}}
5759 steps :
5860 - name : install gcc-7
5961 run : |
6062 sudo add-apt-repository --yes --update ppa:ubuntu-toolchain-r/test
61- sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends g++-7
62-
63- - name : list compilers
64- run : dpkg --list | grep compiler
65-
66- - name : Get pushed code
67- uses : actions/checkout@v4
68-
69- - name : Checkout libebml
70- uses : actions/checkout@v4
71- with :
72- repository : Matroska-Org/libebml
73- path : libebml
74- # minimum version we support ref: 'release-1.4.3'
75-
76- - name : Configure libebml
77- run : cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }}
78-
79- - name : Build libebml
80- run : cmake --build libebml/_build --parallel
81-
82- - name : Install libebml
83- run : cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built
84-
85- - name : Configure
86- run : cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
87-
88- - name : Build
89- run : cmake --build _build --parallel
90-
91- - name : Test installation
92- run : cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
93-
94- Clang-7 :
95- runs-on : ubuntu-20.04
96- env :
97- CMAKE_OPTIONS : -DDEV_MODE=ON -DBUILD_TESTING=ON
98- CMAKE_MATROSKA_OPTIONS : -DBUILD_EXAMPLES=ON
99- CC : clang-7
100- CXX : clang++-7
101- steps :
102- - name : install clang-7
103- run : |
104- sudo add-apt-repository --yes --update ppa:ubuntu-toolchain-r/test
105- sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends clang++-7
63+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends ${{matrix.cxx}}
10664
10765 - name : list compilers
10866 run : dpkg --list | grep compiler
0 commit comments