Skip to content

Set default sanitizers off (#159) #156

Set default sanitizers off (#159)

Set default sanitizers off (#159) #156

Workflow file for this run

name: Sonarcloud Analysis
on:
schedule:
- cron: '21 9 * * 4'
push:
branches:
- 'master'
pull_request:
jobs:
sonarcloud:
runs-on: ubuntu-latest
container: egecetinn/ubuntu2204
env:
BUILD_WRAPPER_OUT_DIR: build/sonar
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Prepare
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v1
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -DXXX_ENABLE_ASAN=OFF -DXXX_ENABLE_USAN=OFF
- name: Run build-wrapper
run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release --parallel
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"