-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (47 loc) · 1.2 KB
/
run-tests.yml
File metadata and controls
59 lines (47 loc) · 1.2 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Run tests"
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Debug, Release]
runs-on: ${{ matrix.os }}
name: Run Tests (${{ matrix.os }}, ${{ matrix.build_type }})
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup LLVM
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 22
- name: Configure
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DLIT_FLAGS="-v" \
-GNinja ..
- name: Build
run: ninja
working-directory: build
- name: Check rules
run: ninja check-rules
working-directory: build
- name: Run unit tests
run: ninja check
working-directory: build
- name: Check benchmarks (don't run)
run: ninja check-benchmarks
working-directory: build
env:
SKIP_RUN: 1