-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (46 loc) · 1.32 KB
/
Copy pathhardening.yml
File metadata and controls
57 lines (46 loc) · 1.32 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
name: parser-hardening
on:
pull_request:
workflow_dispatch:
jobs:
sanitize-and-fuzz:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
CC: clang
CXX: clang++
ASAN_OPTIONS: detect_leaks=0
UBSAN_OPTIONS: print_stacktrace=1
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Validate Documentation Version
run: python scripts/sync_doc_versions.py --check
- name: Install Meson + Ninja
run: python -m pip install --upgrade pip meson ninja
- name: Install Clang
run: |
sudo apt-get update
sudo apt-get install -y clang lld
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.10.1"
arch: "linux_gcc_64"
modules: qtmultimedia qtimageformats
- name: Configure Hardening Build
run: >
meson setup builddir
--backend ninja
--buildtype=debugoptimized
-Dvulkan_preview=disabled
-Dfuzzing=enabled
-Db_sanitize=address,undefined
- name: Build
run: meson compile -C builddir
- name: Run Sanitized Tests
run: meson test -C builddir --print-errorlogs