action: sonar check (#243)

* action:sonar check


Co-authored-by: xiaoyifang <yifang.xiao@noreply.com>
This commit is contained in:
xiaoyifang 2022-12-05 20:55:52 +08:00 committed by GitHub
parent 03d92168c9
commit 90c1dbb8b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,9 @@
name: SonarCloud
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- dev
@ -48,8 +52,8 @@ jobs:
uses: SonarSource/sonarcloud-github-c-cpp@v1
- name: Run build-wrapper
run: |
cmake .
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build .
qmake CONFIG+=release CONFIG+=no_extra_tiff_handler CONFIG+=zim_support CONFIG+=chinese_conversion_support
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -j8
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}