-
Notifications
You must be signed in to change notification settings - Fork 15
79 lines (67 loc) · 1.82 KB
/
tests.yml
File metadata and controls
79 lines (67 loc) · 1.82 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
73
74
75
76
77
78
79
# To test it locally, use `act`: https://github.com/nektos/act
name: Tests
on: [push]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update -y && \
sudo apt-get install -y \
clang \
curl \
exuberant-ctags \
flex \
gperf \
libclang-dev \
libssl-dev \
libxml2-dev \
llvm-dev \
pkg-config \
python3-dev \
python3-pip \
smitools \
snmp-mibs-downloader \
valgrind
env:
DEBIAN_FRONTEND: noninteractive
- name: Install asdf
uses: asdf-vm/actions/setup@v4
with:
asdf_branch: v0.15.0 # Keep this version for `asdf plugin-add`
- name: Install waf
run: |
sudo curl https://waf.io/waf-2.1.9 -o /usr/local/bin/waf && \
sudo chmod +x /usr/local/bin/waf && \
sudo waf --help 2>&1 >/dev/null
- name: Configure with GCC, default
run: waf configure
- name: Compile with GCC, default
run: waf build
- name: Check with GCC, default
run: waf check
- name: Clean-up
run: waf clean
- name: Configure with Clang, ASan
run: waf configure
env:
CC: clang
CXX: clang++
P: asan
- name: Compile with Clang, ASan
run: waf build
- name: Check with Clang, ASan
run: waf check
env:
ASAN_OPTIONS: 'handle_segv=0:detect_leaks=1'
- name: Static checks
run: uv run ./static-checks.py