From e3036f2f5f58546584eaabf3750ac22f8393149b Mon Sep 17 00:00:00 2001 From: Twice Date: Sun, 21 Jan 2024 19:34:26 +0900 Subject: [PATCH] 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 5a7cbe50105..16bc26f718b 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 7d134f6e2f0..5c48cd0674b 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 }}