BiteTheDDDDt commented on code in PR #24388: URL: https://github.com/apache/doris/pull/24388#discussion_r1325851776
########## .github/workflows/sonarcloud.yml: ########## @@ -85,3 +85,58 @@ jobs: run: | cd fe mvn --batch-mode verify sonar:sonar -DskipTests -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-doris -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + sonar-cloud-cpp: + name: "SonarCloud on cpp" + if: ${{ github.event_name == 'pull_request_target' }} + runs-on: ubuntu-22.04 + steps: + - name: Checkout ${{ github.ref }} ( ${{ github.event.pull_request.head.sha }} ) + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + submodules: recursive + + - name: Paths Filter + uses: ./.github/actions/paths-filter + id: filter + with: + filters: | + be_changes: + - 'be/**' + - 'gensrc/proto/**' + - 'gensrc/thrift/**' + + - name: Generate compile_commands.json + if: ${{ steps.filter.outputs.be_changes == 'true' }} + run: | + export DEFAULT_DIR='/opt/doris' + + mkdir "${DEFAULT_DIR}" + wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh \ + -q -O /tmp/ldb_toolchain_gen.sh + bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain" + + sudo DEBIAN_FRONTEND=noninteractive apt install --yes tzdata byacc + + pushd thirdparty + curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-linux-x86_64.tar.xz \ + -o doris-thirdparty-prebuilt-linux-x86_64.tar.xz + tar -xvf doris-thirdparty-prebuilt-linux-x86_64.tar.xz + popd + + export PATH="${DEFAULT_DIR}/ldb-toolchain/bin/:$(pwd)/thirdparty/installed/bin/:${PATH}" + DISABLE_JAVA_UDF=ON DORIS_TOOLCHAIN=clang OUTPUT_BE_BINARY=0 ./build.sh --be Review Comment: add ENABLE_PCH=OFF on here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org