Skip to content

Commit

Permalink
Add nightly checks
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 authored Nov 22, 2023
1 parent 87f3b01 commit 2e7674d
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/nightly-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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

0 comments on commit 2e7674d

Please sign in to comment.