Skip to content

Commit f028c6d

Browse files
committed
factorize getter
1 parent 2451b2a commit f028c6d

File tree

1 file changed

+9
-44
lines changed

1 file changed

+9
-44
lines changed

.github/workflows/linux.yaml

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -47,56 +47,21 @@ jobs:
4747
- name: Test installation
4848
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
4949

50-
GCC-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-gcc@v1
57-
with:
58-
version: 7
59-
60-
- name: list compilers
61-
run: dpkg --list | grep compiler
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-
Clang-7:
50+
Oldest:
9251
runs-on: ubuntu-20.04
52+
strategy:
53+
matrix:
54+
cxx: [
55+
{ "getter": "egor-tensin/setup-gcc@v1", "version": "7" },
56+
{ "getter": "egor-tensin/setup-clang@v1", "version": "7" },
57+
]
9358
env:
9459
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
9560
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
9661
steps:
97-
- uses: egor-tensin/setup-clang@v1
62+
- uses: ${{ matrix.cxx.getter }}
9863
with:
99-
version: 7
64+
version: ${{ matrix.cxx.version }}
10065

10166
- name: list compilers
10267
run: dpkg --list | grep compiler

0 commit comments

Comments
 (0)