Skip to content

Add nightly checks

Add nightly checks #1

name: Nightly checks
on:
push:
jobs:
linux-clang-build:
runs-on: ubuntu-latest
env:
QT_SELECT: qt5
SCCACHE_GHA_ENABLED: "true"
SCCACHE_CACHE_SIZE: "2G"
strategy:
matrix:
sanitizer: [address, thread, memory, undefined]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install clang libqt5opengl5-dev libqt5svg5-dev libglvnd-dev libeigen3-dev zlib1g-dev libfftw3-dev ninja-build
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Get CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: '3.16.3'
- name: Print CMake version
run: cmake --version
- name: configure
run: >
cmake
-B build
-G Ninja
-D CMAKE_BUILD_TYPE=Release
-D MRTRIX_BUILD_TESTS=ON
-D MRTRIX_STL_DEBUGGING=ON
-D MRTRIX_WARNINGS_AS_ERRORS=ON
-D ECM_ENABLE_SANITIZERS=${{ matrix.sanitizer }}
- name: build
run: cmake --build build
- name: unit tests
run: cd build && ctest -R unit
- name: binary tests
run: cd build && ctest -R bin