Skip to content

Run CI tests with address sanitization #66

Run CI tests with address sanitization

Run CI tests with address sanitization #66

Workflow file for this run

name: Run Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure CMake ADOL-C
run: >
cmake
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_C_COMPILER=gcc
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}
-DCMAKE_CXX_FLAGS="-fsanitize=address -g"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address"
- name: Build ADOLC
run: |
make
make install
- name: Install Boost
shell: bash
run: |
sudo apt-get install libboost-all-dev
- name: Build and Run Boost-Test
shell: bash
run: |
cd ADOL-C/boost-test
mkdir build && cd build
cmake ../ \
-DADOLC_BASE=${{ github.workspace }} \
-DCMAKE_CXX_FLAGS="-fsanitize=address -g" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address"
make
./boost-test-adolc