Skip to content

Commit 6b17e5a

Browse files
authored
Correct Minimal-CI
1 parent 0a3d6e0 commit 6b17e5a

1 file changed

Lines changed: 11 additions & 24 deletions

File tree

.github/workflows/minimal.yml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,16 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build-cpp-gcc:
9+
build-cpp-gcc_clang:
10+
strategy:
11+
matrix:
12+
compiler: ["gcc", "clang"]
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v3
1316
- uses: ./.github/actions/linux-build
1417
with:
15-
compiler: "gcc"
16-
config: "Debug"
17-
version: "latest"
18-
19-
build-cpp-clang:
20-
runs-on: "ubuntu-20.04"
21-
steps:
22-
- uses: actions/checkout@v3
23-
- uses: ./.github/actions/linux-build
24-
with:
25-
compiler: "clang"
18+
compiler: ${{ matrix.compiler }}
2619
config: "Debug"
2720
version: "latest"
2821

@@ -35,23 +28,17 @@ jobs:
3528
config: "Debug"
3629
version: "latest"
3730

38-
test-cpp-gcc:
39-
needs: build-cpp-gcc
31+
test-cpp-gcc_clang:
32+
needs: build-cpp-gcc_clang
33+
strategy:
34+
matrix:
35+
compiler: ["gcc", "clang"]
4036
runs-on: "ubuntu-latest"
4137
steps:
4238
- uses: actions/checkout@v3
4339
- uses: ./.github/actions/linux-test
4440
with:
45-
build-artifact: build-cpp-linux-gcc-latest-Debug-full
46-
47-
test-cpp-clang:
48-
needs: build-cpp-clang
49-
runs-on: "ubuntu-20.04"
50-
steps:
51-
- uses: actions/checkout@v3
52-
- uses: ./.github/actions/linux-test
53-
with:
54-
build-artifact: build-cpp-linux-clang-latest-Debug-full
41+
build-artifact: build-cpp-linux-${{ matrix.compiler }}-latest-Debug-full
5542

5643
test-cpp-msvc:
5744
needs: build-cpp-msvc

0 commit comments

Comments
 (0)