This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch HTHou-patch-1
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit ef57e9f3a44339b7985f9eec51a28f0e1c50ae33
Author: Haonan <[email protected]>
AuthorDate: Fri Sep 20 20:57:08 2024 +0800

    Update codeql.yml
---
 .github/workflows/codeql.yml | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 2ebf94cd..0ed63ffb 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -16,6 +16,7 @@ on:
     branches:
       - develop
       - rc/*
+      - HTHou-patch-1
     paths-ignore:
       - 'docs/**'
 
@@ -27,8 +28,8 @@ jobs:
     #   - https://gh.io/supported-runners-and-hardware-resources
     #   - https://gh.io/using-larger-runners (GitHub.com only)
     # Consider using larger runners or machines with greater resources for 
possible analysis time improvements.
-    runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 
'ubuntu-latest' }}
-    timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
+    runs-on: ${{ 'ubuntu-latest' }}
+    timeout-minutes: ${{ 360 }}
     permissions:
       # required for all workflows
       security-events: write
@@ -45,7 +46,7 @@ jobs:
       matrix:
         include:
         - language: c-cpp
-          build-mode: autobuild
+          build-mode: manual
         - language: java-kotlin
           build-mode: none # This mode only analyzes Java. Set this to 
'autobuild' or 'manual' to analyze Kotlin too.
         - language: python
@@ -68,19 +69,10 @@ jobs:
       with:
         languages: ${{ matrix.language }}
         build-mode: ${{ matrix.build-mode }}
-        # If you wish to specify custom queries, you can do so here or in a 
config file.
-        # By default, queries listed here will override any specified in a 
config file.
-        # Prefix the list here with "+" to use these queries and those in the 
config file.
-
-        # For more details on CodeQL's query packs, refer to: 
https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
-        # queries: security-extended,security-and-quality
-
-    # If the analyze step fails for one of the languages you are analyzing with
-    # "We were unable to automatically build your code", modify the matrix 
above
-    # to set the build mode to "manual" for that language. Then modify this 
step
-    # to build your code.
-    # â„šī¸ Command-line programs to run using the OS shell.
-    # 📚 See 
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
+    - if: matrix.build-mode == 'manual'
+      shell: bash
+      run: |
+        ./mvnw clean package -P with-cpp
 
     - name: Perform CodeQL Analysis
       uses: github/codeql-action/analyze@v3

Reply via email to