Skip to content

Commit

Permalink
Merge pull request IObundle#125 from P-Miranda/actions
Browse files Browse the repository at this point in the history
feat(actions): Add concurrency, cancel-in-progress
  • Loading branch information
jjts authored Jun 15, 2022
2 parents 86f90fa + bd8d7b9 commit c8a296d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
# Allow manual workflow runs
workflow_dispatch:

# Run only one instance of this workflow at a time
# cancel-in-progress: stop running workflow and run latest instead
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sim:
runs-on: self-hosted
Expand All @@ -31,8 +37,8 @@ jobs:
fpga:
runs-on: self-hosted
timeout-minutes: 30
# run even if previous job failed
if: ${{ always() }}
# always run, except when previous job was cancelled
if: ${{ !cancelled() }}
# run after indicated job
needs: sim

Expand All @@ -47,8 +53,8 @@ jobs:
doc:
runs-on: self-hosted
timeout-minutes: 30
# run even if previous job failed
if: ${{ always() }}
# always run, except when previous job was cancelled
if: ${{ !cancelled() }}
# run after indicated job
needs: fpga

Expand Down

0 comments on commit c8a296d

Please sign in to comment.