action: sonar cloud analysis (#1039)

* action: sonar cloud analysis

* action: sonar cloud analysis

* action: sonar cloud analysis

* action: sonar cloud analysis

* action: sonar cloud analysis

* action:sonar cloud

* action: sonar cloud analysis

* action: sonar cloud analysis

* action: sonar cloud

* action: sonar cloud

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
This commit is contained in:
xiaoyifang 2023-08-05 12:52:12 +08:00 committed by GitHub
parent 623cc83c39
commit e2ba650a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View file

@ -18,9 +18,6 @@ jobs:
env: env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
steps: steps:
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
@ -29,7 +26,6 @@ jobs:
#serialport linuxdeploy need serialport to work. #serialport linuxdeploy need serialport to work.
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech qtserialport modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech qtserialport
setup-python: 'false'
- name: ubuntu install thirdparty dependencies - name: ubuntu install thirdparty dependencies
run: | run: |
@ -47,10 +43,16 @@ jobs:
sudo make install sudo make install
cd .. cd ..
sudo apt-get install libzim-dev sudo apt-get install libzim-dev
sudo apt install openjdk-17-jdk openjdk-17-jre
java -version
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: true submodules: true
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install sonar-scanner and build-wrapper - name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2 uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Run build-wrapper - name: Run build-wrapper