Skip to content

Auto submodule update: cmake - Add codeowners to guideline relevant f… #2052

Auto submodule update: cmake - Add codeowners to guideline relevant f…

Auto submodule update: cmake - Add codeowners to guideline relevant f… #2052

Workflow file for this run

on:
push:
branches:
- master
- staging
pull_request:
types: [opened, synchronize, reopened]
name: SonarCloud
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_AUTO }}
with:
args: >
-Dsonar.organization=swift-nav
-Dsonar.projectKey=swift-nav_libsbp_auto
-Dsonar.sources=.
-Dsonar.exclusions=java/**
-Dsonar.verbose=true
-Dsonar.c.file.suffixes=- -Dsonar.cpp.file.suffixes=-
C:
name: C Code Coverage
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v3
- name: Setup
run: |
sudo apt-get install llvm -y
- name: Build and Run Tests
env:
CC: clang
CXX: clang++
run: |
cmake -S c -B build -DCODE_COVERAGE=ON -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage &&
build-wrapper-linux-x86-64 --out-dir ./bw-output cmake --build build -j4 --target ccov-all-export
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_C }}
run: sonar-scanner
-X
-Dsonar.organization=swift-nav
-Dsonar.projectName=libsbp-c
-Dsonar.projectKey=swift-nav_libsbp_c
-Dsonar.verbose=true
-Dsonar.login=${{ secrets.SONAR_TOKEN_C }}
-Dsonar.cfamily.threads=4
-Dsonar.cfamily.llvm-cov.reportPath=./build/ccov/coverage.txt
-Dsonar.sources=c/src/,c/include/
-Dsonar.tests=c/test/
-Dsonar.cfamily.build-wrapper-output=./bw-output