File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 2828 - name : Checkout
2929 uses : actions/checkout@v4
3030
31+ - name : Install Clang + Ninja (Linux)
32+ if : runner.os == 'Linux'
33+ shell : bash
34+ run : |
35+ set -euo pipefail
36+ sudo apt-get update
37+ sudo apt-get install -y clang ninja-build
38+
39+ - name : Select Clang toolchain (Linux)
40+ if : runner.os == 'Linux'
41+ shell : bash
42+ run : |
43+ set -euo pipefail
44+ echo "CC=clang" >> "$GITHUB_ENV"
45+ echo "CXX=clang++" >> "$GITHUB_ENV"
46+
3147 - name : Set up MSVC dev environment
3248 if : runner.os == 'Windows'
3349 uses : ilammy/msvc-dev-cmd@v1
@@ -166,6 +182,8 @@ jobs:
166182 run : >
167183 cmake -S . -B build -G Ninja
168184 -DCMAKE_BUILD_TYPE=Release
185+ -DCMAKE_C_COMPILER=clang
186+ -DCMAKE_CXX_COMPILER=clang++
169187
170188 - name : Build
171189 run : cmake --build build --target SimpleEngine --parallel 4
You can’t perform that action at this time.
0 commit comments