forked from bitcoin-core/secp256k1
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (59 loc) · 1.72 KB
/
tests-and-examples-under-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
name: Run FROST tests and example under Valgrind
on:
push:
branches:
- frost
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests-and-examples-under-valgrind:
runs-on: ubuntu-22.04
# Use fedora:38 to compile using gcc-13
container:
image: fedora:38
steps:
- name: Install build dependencies and Valgrind
run: |
dnf install -y \
autoconf \
automake \
gcc \
libtool \
pkg-config \
valgrind
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: prepare the build (only enabling FROST, tests and examples)
run: |
./autogen.sh
./configure \
--disable-benchmark \
--disable-coverage \
--disable-exhaustive-tests \
--disable-module-ecdh \
--disable-module-extrakeys \
--disable-module-recovery \
--disable-module-schnorrsig \
--enable-examples \
--enable-experimental \
--enable-module-frost \
--enable-option-checking \
--enable-tests
- name: build the project
run: make -j
- name: run the FROST example under Valgrind
run: |
valgrind \
--show-error-list=yes \
--leak-check=yes \
--error-exitcode=17 \
./frost_example
- name: run the FROST tests under Valgrind
run: |
valgrind \
--show-error-list=yes \
--leak-check=yes \
--error-exitcode=17 \
./tests