Skip to content

Fix for https://github.com/wc-duck/datalibrary/issues/149 #23

Fix for https://github.com/wc-duck/datalibrary/issues/149

Fix for https://github.com/wc-duck/datalibrary/issues/149 #23

Workflow file for this run

name: Valgrind
on:
push:
branches: [ "main", "**" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config: [release]
compiler: [gcc, clang]
include:
# workarourd for valgrind bug were valgrind can't correctly parse the dwarf-header generated by clang in debug.
# see issue: #177
- compiler: gcc
config: debug
steps:
- uses: actions/checkout@v3
with:
submodules: true
recursive: true
- name: Install Valgrind
run: |
sudo apt-get update
sudo apt install valgrind --fix-missing
echo "Valgrind installed"
- name: Build project
run: |
./script/bootstrap.sh
./local/bam/bam config=${{ matrix.config }} platform=linux_x86_64 compiler=${{ matrix.compiler }}
- name: Run Tests
run: |
./local/bam/bam config=${{ matrix.config }} platform=linux_x86_64 compiler=${{ matrix.compiler }} test
- name: Run Tests with Valgrind
run: |
./local/bam/bam config=${{ matrix.config }} platform=linux_x86_64 compiler=${{ matrix.compiler }} test_valgrind