diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml index ef10adbe..3c8e2cf2 100644 --- a/.github/workflows/code_style.yml +++ b/.github/workflows/code_style.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ "master" ] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: lint: name: "clang-format-always-success" @@ -27,4 +31,4 @@ jobs: # Check if there are any formatting changes git diff --exit-code shell: bash - continue-on-error: true \ No newline at end of file + continue-on-error: true diff --git a/.github/workflows/core_build.yml b/.github/workflows/core_build.yml index b4d0d936..99f195a8 100644 --- a/.github/workflows/core_build.yml +++ b/.github/workflows/core_build.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ "master" ] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index 89dea87a..c3930f1e 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -5,9 +5,9 @@ on: pull_request: branches: [ "master" ] -# concurrency: -# group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) -# cancel-in-progress: true +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: macos-build: @@ -42,4 +42,4 @@ jobs: - name: Configure OS run: source ./acore.sh install-deps - name: Build - run: source ./apps/ci/mac/ci-compile.sh \ No newline at end of file + run: source ./apps/ci/mac/ci-compile.sh diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 48d33ba2..a4bc0f20 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -5,6 +5,10 @@ on: pull_request: branches: [ "master" ] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: windows-build: strategy: