PhilippGrulich builds Nautilus #341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sanitizer Nautilus | |
run-name: ${{ github.actor }} builds Nautilus | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-test: | |
runs-on: ${{matrix.os}} | |
name: Build on ${{ matrix.os }} with ${{ matrix.cc }} ${{ matrix.flags }} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: 'ubuntu-24.04' | |
cc: 'gcc-12' | |
cxx: 'g++-12' | |
flags: '-DENABLE_ADDRESS_SANITIZER=ON' | |
- os: 'ubuntu-24.04' | |
cc: 'clang-18' | |
cxx: 'clang++-18' | |
flags: '-DENABLE_ADDRESS_SANITIZER=ON' | |
env: | |
CC: ${{ matrix.cc }} | |
CXX: ${{ matrix.cxx }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- name: get cmake | |
uses: lukka/get-cmake@latest | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2.13 | |
with: | |
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.cc }} | |
- name: cmake | |
shell: bash | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache ${{ matrix.flags }} -G Ninja -S . -B . | |
- name: build | |
shell: bash | |
run: | | |
cmake --build . --target all | |
- name: test | |
shell: bash | |
run: | | |
cd nautilus && ctest --output-on-failure | |