From 2e7674d87bd394548da572dc9b046d202a2a0bc5 Mon Sep 17 00:00:00 2001 From: Daljit Singh <129752264+daljit46@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:54:05 +0000 Subject: [PATCH] Add nightly checks --- .github/workflows/nightly-checks.yml | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/nightly-checks.yml diff --git a/.github/workflows/nightly-checks.yml b/.github/workflows/nightly-checks.yml new file mode 100644 index 0000000000..c701379295 --- /dev/null +++ b/.github/workflows/nightly-checks.yml @@ -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 \ No newline at end of file