Skip to content

Commit b79ba91

Browse files
committed
🔨 Use clang compiler on Ubuntu
1 parent ee5f847 commit b79ba91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/cmake-multi-platform.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cpp_compiler: cl
1919
separator: '\\'
2020
- os: ubuntu-latest
21-
cpp_compiler: g++
21+
cpp_compiler: clang++
2222
separator: "/"
2323

2424
steps:
@@ -33,7 +33,7 @@ jobs:
3333
if: runner.os == 'Linux'
3434
run: |
3535
sudo apt-get update
36-
sudo apt-get install -y libegl1-mesa-dev libgl1-mesa-dev ninja-build
36+
sudo apt-get install -y libegl1-mesa-dev libgl1-mesa-dev ninja-build clang
3737
3838
- name: Setup Developer Command Prompt (Windows)
3939
if: runner.os == 'Windows'
@@ -88,6 +88,12 @@ jobs:
8888
echo "preset=conan-release" >> "$GITHUB_OUTPUT"
8989
fi
9090
91+
- name: Set Clang Environment (Ubuntu)
92+
if: runner.os == 'Linux'
93+
run: |
94+
echo "CC=clang" >> $GITHUB_ENV
95+
echo "CXX=clang++" >> $GITHUB_ENV
96+
9197
- name: Configure CMake
9298
shell: bash
9399
run: |

0 commit comments

Comments
 (0)