Skip to content

Commit

Permalink
Add concurrency groups to the slow CI actions
Browse files Browse the repository at this point in the history
This will cancel any running actions when new commits are pushed to a PR
branch.
  • Loading branch information
yut23 committed Mar 27, 2024
1 parent 52936fe commit a13b9fb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/c-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: cpp-linter

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
cpp-linter:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/compiler-warnings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "compiler warnings"

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
compiler_warnings:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/detonation-sdc-compare.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: detonation-sdc

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
detonation-sdc:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/flame_wave-compare.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: flame_wave

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
flame_wave-2d:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/gpu_action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: GPU compilation

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
gpu-compilation:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/wdmerger_collision-compare.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: wdmerger_collision

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
wdmerger_collision-2d:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a13b9fb

Please sign in to comment.