forked from nfrechette/acl
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.29 KB
/
sonarcloud.yml
File metadata and controls
42 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: sonarcloud
on:
push:
branches:
- '**'
paths-ignore:
- docs/**
- '**/*.md'
pull_request:
branches:
- '**'
paths-ignore:
- docs/**
- '**/*.md'
jobs:
sonarcloud:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup build wrapper
run: |
wget -q https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86.zip
- name: Setup Sonar Scanner
run: |
wget -q https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip
unzip sonar-scanner-cli-4.2.0.1873-linux.zip
- name: Setup compiler
run: ./tools/setup_linux_compiler.sh clang5
- name: Build with wrapper
run: ./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw_output python3 make.py -compiler clang5 -config Release -cpu x64 -build
- name: Run Sonar Scanner and upload to Sonarcloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
run: ./sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner