-
Notifications
You must be signed in to change notification settings - Fork 200
44 lines (42 loc) · 1.19 KB
/
Leak.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
name: Leak Sanitizer
on:
push:
branches:
- DemoApp
paths-ignore:
- 'cmake/**'
- '.github/**'
- 'doc/**'
- 'samples/**'
jobs:
Leak_Sanitizer:
strategy:
matrix:
fs: [DIRENT, STD]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: DemoApp
- name: checkout submodules
run : git submodule update --init --recursive
- name: Install OpenGL lib / Requirement for Glfw3
run : sudo apt-get update && sudo apt-get install libgl1-mesa-dev libx11-dev libxi-dev libxrandr-dev libxinerama-dev libxcursor-dev
- name: configure
run: >
mkdir build && cd build && cmake ..
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Release
-DUSE_TEST=ON
-DUSE_LEAK_SANITIZER=ON
-DUSE_${{ matrix.fs }}_FILESYSTEM=ON
- name: build
run: cmake --build build --config Release
- name: ctest
run: ctest --test-dir build --output-on-failure
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: ImGuiFileDialog_App_Unix_${{ matrix.fs }}_FS
path: bin/ImGuiFileDialog_App_Unix