Skip to content

Avoid to export Debug flags (#121) #414

Avoid to export Debug flags (#121)

Avoid to export Debug flags (#121) #414

Workflow file for this run

# .github/workflows/linux.yml
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Linux Build
on:
push:
branches: ["main"]
paths:
- "include/**"
- "src/**"
- "tests/**"
- "examples/**"
- "cmake/**"
- "Makefile"
- "CMakePresets.json"
- "CMakeLists.txt"
- ".github/workflows/linux.yml"
pull_request:
branches: ["main"]
paths:
- "include/**"
- "src/**"
- "tests/**"
- "examples/**"
- "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
if: startsWith(matrix.preset, 'debug')
run: CXX=${{ matrix.compiler }} make all