This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 60c1f7e2 Upload build artifact for the sonar scan (#2321)
60c1f7e2 is described below
commit 60c1f7e2c8713243436f52a16ab1a55ac9013524
Author: hulk <[email protected]>
AuthorDate: Sun May 19 16:49:14 2024 +0800
Upload build artifact for the sonar scan (#2321)
---
.github/workflows/kvrocks.yaml | 6 +++++-
.github/workflows/sonar.yaml | 5 +++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index 4bd51b95..1871f232 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -273,6 +273,8 @@ jobs:
- name: Build Kvrocks (SonarCloud)
if: ${{ matrix.sonarcloud }}
run: |
+ build-wrapper-linux-x86-64 --out-dir ${{ env.SONARCLOUD_OUTPUT_DIR
}} ./x.py build -j$NPROC --compiler ${{ matrix.compiler }} --skip-build
+ cp -r build _build
build-wrapper-linux-x86-64 --out-dir ${{ env.SONARCLOUD_OUTPUT_DIR
}} ./x.py build -j$NPROC --unittest --compiler ${{ matrix.compiler }} ${{
matrix.sonarcloud }}
- name: Setup Coredump
@@ -375,7 +377,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: sonarcloud-data
- path: ${{ env.SONARCLOUD_OUTPUT_DIR }}
+ path: |
+ ${{ env.SONARCLOUD_OUTPUT_DIR }}
+ _build
check-docker:
name: Check Docker image
diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml
index f1375e05..4189681f 100644
--- a/.github/workflows/sonar.yaml
+++ b/.github/workflows/sonar.yaml
@@ -57,8 +57,9 @@ jobs:
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/sonarcloud-data.zip`,
Buffer.from(download.data));
- name: 'Unzip code coverage'
run: |
- unzip sonarcloud-data.zip -d sonarcloud-data
- ls -a sonarcloud-data
+ unzip sonarcloud-data.zip
+ mv _build build
+ ls -a sonarcloud-data build
- uses: actions/setup-python@v5
with: