Skip to content

Commit 5bb3f06

Browse files
authored
Merge pull request #449 from pbalcer/clang-cmake
add clang to the CI workflow
2 parents 59d9cbc + f6fabcb commit 5bb3f06

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@ jobs:
99
ubuntu-build:
1010
name: Build - Ubuntu
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
compiler: [ {cxx: g++, c: gcc}, {cxx: clang++, c: clang} ]
1215

1316
steps:
1417
- uses: actions/checkout@v3
1518

1619
- name: Install apt packages
1720
run: |
1821
sudo apt-get update
19-
sudo apt-get install -y doxygen
22+
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
2023
2124
- name: Install pip packages
2225
run: pip install -r third_party/requirements.txt
2326

2427
- name: Configure CMake
25-
run: cmake -B ${{github.workspace}}/build -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUR_BUILD_TESTS=ON -DUR_FORMAT_CPP_STYLE=ON
28+
run: cmake -B ${{github.workspace}}/build -D CMAKE_C_COMPILER=${{matrix.compiler.c}} -D CMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUR_BUILD_TESTS=ON -DUR_FORMAT_CPP_STYLE=ON
2629

2730
- name: Generate source from spec, check for uncommitted diff
2831
run: cmake --build ${{github.workspace}}/build --target check-generated

0 commit comments

Comments
 (0)