Commit 1c787e5 1 parent 248f932 commit 1c787e5 Copy full SHA for 1c787e5
File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
test :
14
14
runs-on : ubuntu-latest
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ index : # see DIST_IDS and DIST_VERS lists in CMakeLists.txt
19
+ - ubuntu-20.04
20
+ - ubuntu-22.04
21
+ - ubuntu-24.04
22
+ - rocky-8.9
23
+ - rocky-9.3
24
+ - almalinux-9.3
25
+ - alpine-3.19
26
+ - arch-base
15
27
steps :
16
28
- uses : actions/checkout@v4
17
29
with :
20
32
- name : patch to libssh
21
33
run : patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
22
34
23
- # TODO: just building docker does not require libssh. fix CMakeLists
35
+ # TODO: just building docker images does not require libssh. fix CMakeLists
24
36
- name : install build dependency
25
37
run : |
26
38
sudo apt-get update
30
42
run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
31
43
32
44
- name : Build Containers
33
- run : make -C ${{github.workspace}}/build docker-build-all
45
+ run : make -C ${{github.workspace}}/build docker-build-${{ matrix.index }}
34
46
35
47
- name : Run Test
36
- run : make -C ${{github.workspace}}/build docker-test-all
48
+ run : make -C ${{github.workspace}}/build docker-test-${{ matrix.index }}
Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ enable_testing()
165
165
# Custom targets to build and test mscp in docker containers.
166
166
# foreach(IN ZIP_LISTS) (cmake >= 3.17) can shorten the following lists.
167
167
# However, ubuntu 20.04 has cmake 3.16.3. So this is a roundabout trick.
168
+ #
169
+ # When edit DIST_IDS and DIST_VERS, also edit .github/workflows/test.yaml
168
170
list (APPEND DIST_IDS ubuntu ubuntu ubuntu rocky rocky almalinux alpine arch)
169
171
list (APPEND DIST_VERS 20.04 22.04 24.04 8.9 9.3 9.3 3.19 base)
170
172
You can’t perform that action at this time.
0 commit comments