-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 939 Bytes
/
c-cpp.yml
File metadata and controls
37 lines (31 loc) · 939 Bytes
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
name: C CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-valgrind:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Ensure that build tools and Valgrind are installed
- name: Install build tools and Valgrind
run: |
sudo apt-get update
sudo apt-get install -y build-essential valgrind
sudo apt-get install -y uthash-dev
sudo apt install openmpi-bin libopenmpi-dev
# Build everything from the makefile
- name: Build
run: make clean && make all
# Run program/tests under Valgrind
# - name: Run under Valgrind (memory leak check)
# run: |
# valgrind \
# --leak-check=full \
# --show-leak-kinds=all \
# --track-origins=yes \
# --error-exitcode=1 \
# ./QPESeq