Skip to content

Merge pull request #542 from laurynas-biveinis/msvc-spurious-avx #1143

Merge pull request #542 from laurynas-biveinis/msvc-spurious-avx

Merge pull request #542 from laurynas-biveinis/msvc-spurious-avx #1143

Workflow file for this run

---
name: sonarcloud
on: [push]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-22.04
steps:
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Download and set up sonar-scanner
env:
SONAR_SCANNER_VERSION: 4.7.0.2747
SONAR_SCANNER_DOWNLOAD_URL: |
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
run: |
mkdir -p "$HOME/.sonar"
curl -sSLo "$HOME/.sonar/sonar-scanner.zip" \
${{ env.SONAR_SCANNER_DOWNLOAD_URL }}
unzip -o "$HOME/.sonar/sonar-scanner.zip" -d "$HOME/.sonar/"
SCANNER_DIR="sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux"
echo "$HOME/.sonar/$SCANNER_DIR/bin" >> "$GITHUB_PATH"
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0 # Shallow clones should be disabled for a better
# relevancy of analysis
- name: Setup dependencies
run: |
sudo add-apt-repository -y 'ppa:mhier/libboost-latest'
sudo apt-get install -y boost1.74
- 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 }}
SONAR_SERVER_URL: "https://sonarcloud.io"
run: |
sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}"