Fix for https://github.com/wc-duck/datalibrary/issues/149 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |