@@ -21,13 +21,17 @@ jobs:
21
21
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
22
22
runs-on : [linux, bullseye]
23
23
24
+ strategy :
25
+ matrix :
26
+ compiler : [gcc, clang]
27
+
24
28
steps :
25
29
- name : Install dependencies
26
30
run : |
27
31
sudo apt-get install -y \
28
32
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
29
33
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
31
35
32
36
- uses : actions/checkout@v3
33
37
with :
44
48
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
45
49
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
46
50
-DENABLE_TESTS=On \
51
+ -DCMAKE_C_COMPILER=${{ matrix.compiler }} \
47
52
-GNinja
48
53
49
54
- name : Build
@@ -66,13 +71,16 @@ jobs:
66
71
defaults :
67
72
run :
68
73
shell : bash
74
+ strategy :
75
+ matrix :
76
+ compiler : [gcc, clang]
69
77
steps :
70
78
- name : Install dependencies
71
79
run : |
72
80
apt-get update && apt-get install -y \
73
81
git cmake libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev \
74
82
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
76
84
77
85
- uses : actions/checkout@v3
78
86
with :
89
97
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
90
98
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
91
99
-DENABLE_TESTS=On \
100
+ -DCMAKE_C_COMPILER=${{ matrix.compiler }} \
92
101
-GNinja
93
102
94
103
- name : Build
0 commit comments