Skip to content

Commit 7704681

Browse files
authored
Update c-cpp.yml
1 parent 969d410 commit 7704681

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/c-cpp.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,23 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
15+
1616
linux-test:
1717
name: Linux test
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
compiler: [g++-11]
1822
runs-on: ubuntu-latest
1923

2024
steps:
2125
- uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
28+
2229
- name: make
2330
run: |
24-
git submodule init
25-
git submodule update --init --recursive
26-
make
31+
make -j CXX=${{matrix.compiler}}
2732
2833
- name: predict (out dir)
2934
run: |
@@ -40,13 +45,18 @@ jobs:
4045
4146
macos-build:
4247
name: macOS test
43-
runs-on: macOS-latest
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
compiler: [g++-11]
52+
runs-on: macOS-12
4453

4554
steps:
4655
- uses: actions/checkout@v2
56+
with:
57+
submodules: recursive
58+
4759
- name: make
4860
run: |
49-
git submodule init
50-
git submodule update --init --recursive
51-
make
61+
make -j CXX=${{matrix.compiler}}
5262

0 commit comments

Comments
 (0)