Skip to content

Commit 376c7ea

Browse files
committed
Add Clang and Ninja toolchain setup for Linux CI builds.
1 parent 82c8c5d commit 376c7ea

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/simple_engine_ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ jobs:
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

0 commit comments

Comments
 (0)