@@ -30,10 +30,11 @@ permissions:
30
30
defaults :
31
31
run :
32
32
shell : bash
33
+ concurrency :
34
+ group : " ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
35
+ cancel-in-progress : true
33
36
jobs :
34
37
pr :
35
- permissions :
36
- actions : write
37
38
name : " PR - ${{ matrix.name }}"
38
39
env :
39
40
CI_JOB_NAME : " ${{ matrix.name }}"
84
85
- name : ensure the channel matches the target branch
85
86
run : src/ci/scripts/verify-channel.sh
86
87
if : success() && !env.SKIP_JOB
87
- - name : configure GitHub Actions to kill the build when outdated
88
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
89
- with :
90
- github_token : " ${{ secrets.github_token }}"
91
- if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
92
88
- name : collect CPU statistics
93
89
run : src/ci/scripts/collect-cpu-stats.sh
94
90
if : success() && !env.SKIP_JOB
@@ -162,8 +158,6 @@ jobs:
162
158
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
163
159
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
164
160
auto :
165
- permissions :
166
- actions : write
167
161
name : " auto - ${{ matrix.name }}"
168
162
env :
169
163
CI_JOB_NAME : " ${{ matrix.name }}"
@@ -496,11 +490,6 @@ jobs:
496
490
- name : ensure the channel matches the target branch
497
491
run : src/ci/scripts/verify-channel.sh
498
492
if : success() && !env.SKIP_JOB
499
- - name : configure GitHub Actions to kill the build when outdated
500
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
501
- with :
502
- github_token : " ${{ secrets.github_token }}"
503
- if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
504
493
- name : collect CPU statistics
505
494
run : src/ci/scripts/collect-cpu-stats.sh
506
495
if : success() && !env.SKIP_JOB
@@ -574,8 +563,6 @@ jobs:
574
563
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
575
564
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
576
565
try :
577
- permissions :
578
- actions : write
579
566
name : " try - ${{ matrix.name }}"
580
567
env :
581
568
DIST_TRY_BUILD : 1
@@ -623,11 +610,6 @@ jobs:
623
610
- name : ensure the channel matches the target branch
624
611
run : src/ci/scripts/verify-channel.sh
625
612
if : success() && !env.SKIP_JOB
626
- - name : configure GitHub Actions to kill the build when outdated
627
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
628
- with :
629
- github_token : " ${{ secrets.github_token }}"
630
- if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
631
613
- name : collect CPU statistics
632
614
run : src/ci/scripts/collect-cpu-stats.sh
633
615
if : success() && !env.SKIP_JOB
0 commit comments