Skip to content

perf: write out log line with time-prefix as one string to avoid hold… #26

perf: write out log line with time-prefix as one string to avoid hold…

perf: write out log line with time-prefix as one string to avoid hold… #26

Workflow file for this run

name: Sonar
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
sonarcloud:
runs-on: ubuntu-20.04
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Install sonar-scanner and build-wrapper
uses: sonarsource/sonarcloud-github-c-cpp@v2
- name: Run build-wrapper
run: |
gcc --version
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make
- 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 }}"