Skip to content

Commit f543947

Browse files
committed
also test build using clang
1 parent 40bb677 commit f543947

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ jobs:
2121
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
2222
runs-on: [linux, bullseye]
2323

24+
strategy:
25+
matrix:
26+
compiler: [gcc, clang]
27+
2428
steps:
2529
- name: Install dependencies
2630
run: |
2731
sudo apt-get install -y \
2832
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
2933
ttf-mscorefonts-installer fontconfig libsystemd-dev libinput-dev libudev-dev \
30-
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev
34+
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev clang
3135
3236
- uses: actions/checkout@v3
3337
with:
@@ -44,6 +48,7 @@ jobs:
4448
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
4549
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
4650
-DENABLE_TESTS=On \
51+
-DCMAKE_C_COMPILER=${{ matrix.compiler }} \
4752
-GNinja
4853
4954
- name: Build
@@ -66,13 +71,16 @@ jobs:
6671
defaults:
6772
run:
6873
shell: bash
74+
strategy:
75+
matrix:
76+
compiler: [gcc, clang]
6977
steps:
7078
- name: Install dependencies
7179
run: |
7280
apt-get update && apt-get install -y \
7381
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
7482
fonts-liberation fontconfig libsystemd-dev libinput-dev libudev-dev \
75-
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev
83+
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev clang
7684
7785
- uses: actions/checkout@v3
7886
with:
@@ -89,6 +97,7 @@ jobs:
8997
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
9098
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
9199
-DENABLE_TESTS=On \
100+
-DCMAKE_C_COMPILER=${{ matrix.compiler }} \
92101
-GNinja
93102
94103
- name: Build

0 commit comments

Comments
 (0)