-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 971 Bytes
/
test.yml
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
39
40
41
42
43
name: Run RIFT tests
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
# Install ninja
sudo apt-get install -y ninja-build
# Update clang to version 18
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
sudo apt-get install -y clang-18
- name: Configure CMake project
run: |
mkdir build
cd build
cmake .. -DRIFT_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18 -G Ninja -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror"
- name: Build project
run: cmake --build build
- name: Run tests
run: |
cd build
./rift_test
if [ $? -ne 0 ]; then
exit 1
fi