Skip to content

Commit 27139aa

Browse files
committed
Add CI tests to Clang (Linux).
1 parent 043215a commit 27139aa

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,22 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v2
3636
- name: run
37-
run: docker run -v $(pwd):/home/src renatogarcia/icecream-ci:${{ matrix.version }} /bin/sh -c "CPP_STANDARD=${CPP_STANDARD} cmake /home/src && make && ./test_exec"
37+
run: docker run -v $(pwd):/home/src renatogarcia/icecream-ci:${{ matrix.version }} /bin/sh -c "CPP_STANDARD=${CPP_STANDARD} cmake /home/src && cmake --build . && ctest -V"
38+
39+
clang:
40+
name: ${{ matrix.version }} C++${{ matrix.cpp }}
41+
runs-on: ubuntu-latest
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
version: [clang5, clang10]
46+
cpp: [11, 14, 17]
47+
env:
48+
CPP_STANDARD: ${{ matrix.cpp }}
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: run
52+
run: docker run -v $(pwd):/home/src renatogarcia/icecream-ci:${{ matrix.version }} /bin/sh -c "CPP_STANDARD=${CPP_STANDARD} cmake /home/src && cmake --build . && ctest -V"
3853

3954
msvc:
4055
name: ${{ matrix.name }} C++${{ matrix.cpp }}
@@ -56,7 +71,7 @@ jobs:
5671
- name: build
5772
run: cmake -DBOOST_ROOT=C:\\hostedtoolcache\\windows\\Boost\\1.72.0 . && cmake --build . --config Debug
5873
- name: run
59-
run: ctest -V -C Debug --output-on-failure
74+
run: ctest -V -C Debug
6075

6176
xcode:
6277
name: Xcode C++${{ matrix.cpp }}
@@ -74,4 +89,4 @@ jobs:
7489
- name: build
7590
run: cmake . && cmake --build .
7691
- name: run
77-
run: ctest -V --output-on-failure
92+
run: ctest -V

0 commit comments

Comments
 (0)