Merge pull request #78 from ClausKlein/feature/prevent-more-clang-tid… #260
This file contains hidden or 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
| # .github/workflows/linux.yml | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| name: Linux Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "include/**" | |
| - "src/**" | |
| - "test/**" | |
| - "cmake/**" | |
| - "Makefile" | |
| - "CMakePresets.json" | |
| - "CMakeLists.txt" | |
| - ".github/workflows/linux.yml" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "include/**" | |
| - "src/**" | |
| - "test/**" | |
| - "cmake/**" | |
| - "Makefile" | |
| - "CMakePresets.json" | |
| - "CMakeLists.txt" | |
| - ".github/workflows/linux.yml" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # TODO: sanitizer: [debug, release, asan, usan, tsan, lsan, msan] | |
| preset: [debug, release] | |
| compiler: [g++-14, clang++-19] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get install ninja-build -y -q | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 19 all | |
| - name: Linux ${{ matrix.compiler }} ${{ matrix.preset }} | |
| run: CXX=${{ matrix.compiler }} cmake --workflow --preset ${{ matrix.preset }} | |
| - name: Linux ${{ matrix.compiler }} sanitizer | |
| run: CXX=${{ matrix.compiler }} make all |