-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 783 Bytes
/
clang.yaml
File metadata and controls
38 lines (33 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Clang++
on:
push:
branches:
- "*"
paths:
- .github/workflows/clang.yaml
- CMakeLists.txt
- cmake/
- include/**
- tests/**
jobs:
build:
name: Build and Run Tests (Clang)
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
env:
CC: clang-18
CXX: clang++-18
run: |
cmake -B build_clang -DBUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
continue-on-error: false
- name: Build Tests
run: |
cmake --build build_clang/ -j$(nproc)
continue-on-error: false
- name: Run Tests
run: |
./build_clang/tests/gl
./build_clang/tests/hgl