Disable -Wswitch-default for clang-cl #1346
Workflow file for this run
This file contains 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
--- | |
name: sonarcloud | |
on: [push] | |
permissions: { } | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# Shallow clones should be disabled for a better relevancy of analysis | |
fetch-depth: 0 | |
- name: Setup dependencies | |
run: | | |
sudo add-apt-repository -y 'ppa:mhier/libboost-latest' | |
sudo apt-get install -y boost1.74 | |
- name: Setup sonar-scanner | |
uses: sonarsource/sonarcloud-github-c-cpp@v2 | |
- name: Produce Compilation Database | |
shell: bash | |
run: | | |
cmake . -DCMAKE_BUILD_TYPE=Debug | |
- name: SonarCloud Scan | |
env: | |
# Needed to get PR information, if any | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: | | |
sonar-scanner --define \ | |
sonar.cfamily.compile-commands=compile_commands.json |