Skip to content

Commit 885f691

Browse files
committed
Add some jobs.<job_id>.needs
1 parent f69a0dc commit 885f691

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- name: Execute run-docker.sh
5757
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
5858

59-
6059
macos:
6160
name: macOS
6261
runs-on: macos-10.15
@@ -228,6 +227,7 @@ jobs:
228227

229228
docker_linux_tier2:
230229
name: Docker Linux Tier2
230+
needs: [docker_linux_tier1, style_and_docs]
231231
runs-on: ubuntu-18.04
232232
strategy:
233233
fail-fast: false
@@ -306,6 +306,7 @@ jobs:
306306
# devkitpro's pacman needs to be connected from Docker.
307307
DockerSwitch:
308308
name: Docker Switch
309+
needs: [docker_linux_tier1, style_and_docs]
309310
runs-on: ubuntu-18.04
310311
strategy:
311312
fail-fast: false
@@ -345,12 +346,13 @@ jobs:
345346

346347
build_channels_linux:
347348
name: Build Channels Linux
349+
needs: docker_linux_tier2
348350
runs-on: ubuntu-18.04
349351
env:
350352
OS: linux
351353
strategy:
352354
fail-fast: false
353-
max-parallel: 5
355+
max-parallel: 4
354356
matrix:
355357
toolchain: [
356358
stable,
@@ -396,15 +398,15 @@ jobs:
396398
- name: Execute build.sh
397399
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
398400

399-
400401
build_channels_macos:
401402
name: Build Channels macOS
403+
needs: macos
402404
runs-on: macos-10.15
403405
env:
404406
OS: macos
405407
strategy:
406408
fail-fast: false
407-
max-parallel: 5
409+
max-parallel: 3
408410
matrix:
409411
toolchain: [
410412
stable,
@@ -450,9 +452,9 @@ jobs:
450452
- name: Execute build.sh
451453
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
452454

453-
454455
semver_linux:
455456
name: Semver Linux
457+
needs: build_channels_linux
456458
runs-on: ubuntu-18.04
457459
strategy:
458460
fail-fast: false
@@ -492,6 +494,7 @@ jobs:
492494

493495
semver_macos:
494496
name: Semver macOS
497+
needs: build_channels_macos
495498
runs-on: macos-10.15
496499
strategy:
497500
fail-fast: false

0 commit comments

Comments
 (0)