Skip to content

Commit

Permalink
add concurrency to ci (risc0#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlukata authored Mar 22, 2023
1 parent fc27559 commit 6b023e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bench_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
bench:
runs-on: [self-hosted, bench, "${{ matrix.os }}", "${{ matrix.device }}"]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bench_trends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
# pull_request:
# branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
bench:
runs-on: [self-hosted, bench, "${{ matrix.os }}", "${{ matrix.device }}"]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6b023e4

Please sign in to comment.