Skip to content

Valgrind

Valgrind #57

Workflow file for this run

name: Valgrind
on:
workflow_dispatch:
schedule:
- cron: "0 22 * * *"
push:
pull_request:
jobs:
valgrind:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check for updates and install them
run: |
sudo apt-get update && sudo apt-get full-upgrade -y
- name: Install package
run: |
sudo apt-get -y install valgrind
- name: Build
run: |
make all
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v12
id: verify-changed-files
with:
files: |
test/*
- name: Test changed files
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
files=(${{ steps.verify-changed-files.outputs.changed_files }})
for ((i = 0; i < ${#files[@]}; i++))
do
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all "${files[$i]}";
done