Skip to content

Commit

Permalink
Fix build file missing in SonarCloud CI (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Jan 21, 2024
1 parent c772109 commit e3036f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit e3036f2

Please sign in to comment.