Skip to content

Commit ff37811

Browse files
committed
bors: Better build test settings
* run on all pushes * run style and cfg checks first as they are fast
1 parent 7ad4f4d commit ff37811

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/bors.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CI (bors)
22

3-
on:
4-
push:
5-
branches:
6-
- auto-libc
7-
- try
3+
on: push
84

95
permissions: {}
106
jobs:
@@ -15,6 +11,7 @@ jobs:
1511

1612
name: Docker Linux Tier1
1713
runs-on: ubuntu-22.04
14+
needs: check_cfg
1815
strategy:
1916
fail-fast: true
2017
matrix:
@@ -39,6 +36,7 @@ jobs:
3936

4037
name: macOS
4138
runs-on: macos-12
39+
needs: build_channels_linux
4240
strategy:
4341
fail-fast: true
4442
matrix:
@@ -62,6 +60,7 @@ jobs:
6260

6361
name: Windows
6462
runs-on: windows-2022
63+
needs: build_channels_linux
6564
env:
6665
OS: windows
6766
strategy:
@@ -118,7 +117,7 @@ jobs:
118117
contents: read # to fetch code (actions/checkout)
119118

120119
name: Docker Linux Tier2
121-
needs: [docker_linux_tier1, style_check]
120+
needs: [check_cfg, docker_linux_tier1]
122121
runs-on: ubuntu-22.04
123122
strategy:
124123
fail-fast: true
@@ -182,7 +181,7 @@ jobs:
182181

183182
if: ${{ false }} # This is currently broken
184183
name: Docker Linux Build-Std Targets
185-
needs: [docker_linux_tier1, style_check]
184+
needs: docker_linux_tier1
186185
runs-on: ubuntu-22.04
187186
strategy:
188187
fail-fast: true
@@ -208,7 +207,7 @@ jobs:
208207
contents: read # to fetch code (actions/checkout)
209208

210209
name: Docker Switch
211-
needs: [docker_linux_tier1, style_check]
210+
needs: docker_linux_tier1
212211
runs-on: ubuntu-22.04
213212
steps:
214213
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
@@ -226,7 +225,7 @@ jobs:
226225
contents: read # to fetch code (actions/checkout)
227226

228227
name: Build Channels Linux
229-
needs: docker_linux_tier2
228+
needs: [check_cfg, docker_linux_tier2]
230229
runs-on: ubuntu-22.04
231230
env:
232231
OS: linux
@@ -297,6 +296,7 @@ jobs:
297296

298297
name: Build Channels Windows
299298
runs-on: windows-2022
299+
needs: windows
300300
env:
301301
OS: windows
302302
strategy:

0 commit comments

Comments
 (0)