-
Notifications
You must be signed in to change notification settings - Fork 166
44 lines (36 loc) · 1.12 KB
/
valgrind-leakcheck.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
44
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
name: Valgrind qtwidgets_leak_test
on:
push:
branches:
- 2.1
- main
pull_request:
branches:
- 2.1
- main
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
steps:
- name: Install Qt 6.6.0
uses: jurplel/install-qt-action@v3
with:
version: 6.6.0
cache: true
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install lld ninja-build libspdlog-dev valgrind -y
- name: Checkout sources
uses: actions/checkout@v4
- name: Configure
run: cmake --preset=dev6 -DKDDockWidgets_EXAMPLES=OFF
- name: Build
run: cmake --build build-dev6 --parallel
- name: Run valgrind
run: valgrind --leak-check=full --show-leak-kinds=all --gen-suppressions=all --error-exitcode=1 --exit-on-first-error=yes --suppressions=./valgrind.sup ./build-dev6/bin/qtwidgets_leak_test -platform offscreen