diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 3aff8e38e12..e14ca660df3 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -28,6 +28,10 @@ on: - 'benchmark/**' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: GIT_SUBMODULE_STRATEGY: recursive NPROC: 2 # default Parallel build number for GitHub's Linux runner diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7556be4504f..14b6a6934e1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -30,6 +30,10 @@ on: - 'benchmark/**' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: coverage: runs-on: ubuntu-latest diff --git a/.github/workflows/hybridse-ci.yml b/.github/workflows/hybridse-ci.yml index 31d46f2452e..a0458ea479b 100644 --- a/.github/workflows/hybridse-ci.yml +++ b/.github/workflows/hybridse-ci.yml @@ -17,6 +17,10 @@ on: - 'include/**' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: CTEST_PARALLEL_LEVEL: 2 # parallel test level for ctest (make test) CTEST_OUTPUT_ON_FAILURE: ON diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3e870960ec9..a040de2ce13 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -19,6 +19,10 @@ on: - "test/integration-test/openmldb-test-python/**" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: GIT_SUBMODULE_STRATEGY: recursive NPROC: 4 # default Parallel build number for GitHub's Linux runner diff --git a/.github/workflows/openmldb-tool.yml b/.github/workflows/openmldb-tool.yml index 3932b4c47f8..58ce1f10ff8 100644 --- a/.github/workflows/openmldb-tool.yml +++ b/.github/workflows/openmldb-tool.yml @@ -16,6 +16,10 @@ on: - 'test/test-tool/openmldb-deploy/**' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: GIT_SUBMODULE_STRATEGY: recursive DEPLOY_DIR: /mnt/hdd0/openmldb_runner_work/openmldb_env diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index c00a50029fb..56106cdb0f2 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -28,6 +28,10 @@ on: - 'benchmark/**' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: GIT_SUBMODULE_STRATEGY: recursive NPROC: 2 # default Parallel build number for GitHub's Linux runner