[ci] Cancel previous running jobs on Push/PR
This commit is contained in:
parent
740dd16066
commit
8803969f16
4
.github/workflows/demo_test.yml
vendored
4
.github/workflows/demo_test.yml
vendored
@ -6,6 +6,10 @@ on: [push, pull_request]
|
||||
env:
|
||||
nap_time: 60
|
||||
|
||||
# Cancel previous running jobs on push or pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
C_cpp_rust_golang_embedded_mode_support_test:
|
||||
|
5
.github/workflows/hw_mode_test.yml
vendored
5
.github/workflows/hw_mode_test.yml
vendored
@ -13,6 +13,11 @@ env:
|
||||
nap_time: 60
|
||||
repeat_times: 500 # Stress test repeat times
|
||||
|
||||
# Cancel previous running jobs on push or pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
Make-test-on-ubuntu:
|
||||
timeout-minutes: 180
|
||||
|
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -7,6 +7,11 @@ on:
|
||||
# Schedule to run everyday at 6PM UTC (2AM CST)
|
||||
- cron: '0 18 * * *'
|
||||
|
||||
# Cancel previous running jobs on push or pull request
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
Make_test_on_ubuntu:
|
||||
runs-on: ubuntu-20.04
|
||||
|
Loading…
Reference in New Issue
Block a user