CI: replace `cancel-outdated-builds` with `concurrency` groupo
This commit is contained in:
parent
99e8000b92
commit
11c2bad059
|
@ -26,6 +26,12 @@ env:
|
||||||
NO_FMT_TEST: 1
|
NO_FMT_TEST: 1
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# For a given workflow, if we push to the same PR, cancel all previous builds on that PR.
|
||||||
|
# If the push is not attached to a PR, we will cancel all builds on the same branch.
|
||||||
|
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
base:
|
base:
|
||||||
# NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
|
# NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
|
||||||
|
@ -33,10 +39,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,11 @@ env:
|
||||||
NO_FMT_TEST: 1
|
NO_FMT_TEST: 1
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch.
|
||||||
|
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -21,10 +26,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -67,10 +68,6 @@ jobs:
|
||||||
# NOTE: If you modify this job, make sure you copy the changes to clippy.yml
|
# NOTE: If you modify this job, make sure you copy the changes to clippy.yml
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -131,10 +128,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -155,10 +148,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -211,10 +200,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
|
|
||||||
with:
|
|
||||||
github_token: "${{ secrets.github_token }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue