forked from cburstedde/p4est
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (69 loc) · 2.11 KB
/
ci_valgrind.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
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
80
81
82
83
name: CI for valgrind
on:
push:
paths:
- "src/*.c"
- "test/*.c"
- ".github/workflows/ci_valgrind.yml"
jobs:
linux-autotools-valgrind:
runs-on: ubuntu-latest
name: Autotools with valgrind
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich valgrind
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
- name: Patch valgrind CI, i. e. exclude p8est_test_balance
run: git apply doc/patch/patch-valgrind-CI.patch
- name: Run bootstrap script
run: ./bootstrap
- name: Make check with MPI and valgrind, without shared
shell: bash
run: |
DIR="checkMPIvalgrind" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --disable-shared --enable-valgrind \
CFLAGS="-O2 -Wall -Wextra -Wno-unused-parameter"
make -j V=0
make -j check V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_autotools_valgrind_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-cmake-valgrind:
runs-on: ubuntu-latest
name: CMake with valgrind
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich valgrind
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
- name: CMake build with MPI and valgrind
shell: bash
run: |
DIR="checkCMakeMPIvalgrind" && mkdir -p "$DIR" && cd "$DIR"
cmake -Dmpi=yes -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel
ctest . -T memcheck
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_cmake_valgrind_log
path: |
./checkCMakeMPIvalgrind/Testing/Temporary