forked from digraphs/Digraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.58 KB
/
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
name: Valgrind
on:
workflow_dispatch:
release:
types: [created]
push:
paths:
- src/*.[hc]
pull_request:
paths:
- src/*.[hc]
env:
VALGRIND: valgrind --trace-children=yes --leak-check=full --error-exitcode=1
NO_COVERAGE: true
jobs:
test-valgrind:
name: Ubuntu / GAP stable-4.13 / valgrind
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Output g++ version . . .
run: g++ --version
- name: Install Valgrind . . .
run: sudo apt-get install valgrind
- name: Install GAP and clone/compile necessary packages . . .
uses: gap-actions/setup-gap@v2
with:
GAP_PKGS_TO_CLONE: NautyTracesInterface digraphs/graphviz
GAP_PKGS_TO_BUILD: io orb datastructures grape NautyTracesInterface
GAPBRANCH: stable-4.13
CONFIGFLAGS: --enable-valgrind
- name: Build Digraphs . . .
uses: gap-actions/build-pkg@v1
- name: Run DigraphsTestInstall . . .
# TODO: Replace below with gap-actions/run-pkg-tests@v2 if the functionality gets added
uses: ./.github/actions/test_with_valgrind
with:
NO_COVERAGE: true
GAP_TESTFILE: tst/github_actions/install.g
pre-gap: ${{ env.VALGRIND }}
- name: Run DigraphsTestStandard . . .
# TODO: Replace below with gap-actions/run-pkg-tests@v2 if the functionality gets added
uses: ./.github/actions/test_with_valgrind
with:
NO_COVERAGE: true
GAP_TESTFILE: tst/github_actions/standard.g
pre-gap: ${{ env.VALGRIND }}