Skip to content

Debugging SEGFAULT in expression unit test #46

Debugging SEGFAULT in expression unit test

Debugging SEGFAULT in expression unit test #46

name: Build, test and deploy
on:
push:
branches:
- master
- ci
- debug
pull_request:
branches:
- master
jobs:
build-test-deploy:
strategy:
matrix:
os: [macos-12]
cxx_compiler:
- { name: "clang", cxx: "clang++" }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
#- name: Install Eigen 3
# run: |
# if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
# sudo apt-get update -q
# sudo apt-get install libeigen3-dev
# else
# brew update
# brew install eigen
# fi
#- name: Set up Python 3.8
# if: startsWith(matrix.cxx_compiler.name, 'clang')
# uses: actions/setup-python@v4
# with:
# python-version: 3.8
#- name: Install cppcheck
# if: startsWith(matrix.os, 'ubuntu')
# run: sudo apt-get install cppcheck
#- name: Install Sphinx and Read the Docs Sphinx Theme
# if: startsWith(matrix.cxx_compiler.name, 'clang')
# run: |
# python -m pip install --upgrade pip
# pip install sphinx sphinx-rtd-theme myst-parser
- name: Build libcommute
run: |
mkdir installed
mkdir build && cd build
if [[ "${{ matrix.os }}" == ubuntu* ]]; then
STATIC_ANALYSIS=ON
else
STATIC_ANALYSIS=OFF
fi
if [[ "${{ matrix.cxx_compiler.name }}" == clang* ]]; then
DOCS=ON
else
DOCS=OFF
fi
CXX="${{ matrix.cxx_compiler.cxx }}" cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/installed \
-DSTATIC_ANALYSIS=${STATIC_ANALYSIS} \
-DTESTS=ON \
-DEXAMPLES=OFF \
-DDOCUMENTATION=OFF
make VERBOSE=1 -j3
- name: Test libcommute
run: |
cd ${GITHUB_WORKSPACE}/build
ctest --debug
#- name: Install libcommute
# run: |
# cd ${GITHUB_WORKSPACE}/build
# make install
- name: Deploy documentation
if: |
github.ref == 'refs/heads/master' &&
startsWith(matrix.os, 'ubuntu') &&
startsWith(matrix.cxx_compiler.name, 'clang')
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}
folder: installed/share/doc/libcommute