This is an automated email from the ASF dual-hosted git repository.
twice 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 e3036f2f Fix build file missing in SonarCloud CI (#2033)
e3036f2f is described below
commit e3036f2f5f58546584eaabf3750ac22f8393149b
Author: Twice <[email protected]>
AuthorDate: Sun Jan 21 19:34:26 2024 +0900
Fix build file missing in SonarCloud CI (#2033)
---
.github/workflows/kvrocks.yaml | 2 +-
.github/workflows/sonar.yaml | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index 5a7cbe50..16bc26f7 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -128,7 +128,7 @@ jobs:
os: ubuntu-20.04
compiler: gcc
- name: SonarCloud with Coverage
- os: ubuntu-20.04
+ os: ubuntu-22.04
compiler: gcc
sonarcloud: -DCMAKE_CXX_FLAGS=--coverage
- name: Ubuntu Clang
diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml
index 7d134f6e..5c48cd06 100644
--- a/.github/workflows/sonar.yaml
+++ b/.github/workflows/sonar.yaml
@@ -25,7 +25,7 @@ on:
jobs:
sonarcloud:
name: Upload to SonarCloud
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v3
@@ -59,6 +59,14 @@ jobs:
run: |
unzip sonarcloud-data.zip -d sonarcloud-data
ls -a sonarcloud-data
+
+ - uses: actions/setup-python@v4
+ with:
+ python-version: 3.x
+ - name: Configure Kvrocks
+ run: |
+ ./x.py build -j$NPROC --compiler gcc --skip-build
+
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}