-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.98 KB
/
runtime.yml
File metadata and controls
72 lines (60 loc) · 1.98 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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Runtime
on:
push:
branches: [main, develop]
paths:
- "runtime/**"
- ".github/workflows/runtime.yml"
pull_request:
branches: [main]
paths:
- "runtime/**"
- ".github/workflows/runtime.yml"
jobs:
native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ninja
run: sudo apt-get update && sudo apt-get install -y ninja-build
- name: Configure and build
working-directory: runtime
run: |
cmake --preset ci-native
cmake --build --preset ci-native
- name: CTest
working-directory: runtime
run: ctest --preset ci-native --output-on-failure
optional-asan-ubsan:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install Ninja
run: sudo apt-get update && sudo apt-get install -y ninja-build
- name: Configure with ASan/UBSan
working-directory: runtime
run: |
cmake -S . -B build-san -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" \
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
- name: Build and CTest
working-directory: runtime
run: |
cmake --build build-san
ctest --test-dir build-san --output-on-failure
optional-clang-tidy:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install tools
run: sudo apt-get update && sudo apt-get install -y ninja-build clang-tidy
- name: Configure, build library, clang-tidy
working-directory: runtime
run: |
cmake --preset ci-native
cmake --build --preset ci-native --target edgeplug_runtime
cmake --build --preset ci-native --target clang_tidy