Skip to content

Commit 2e4e0ed

Browse files
committed
ci: reorder jobs, don't make native linux depend on tier 2 tests
1 parent 4406ec2 commit 2e4e0ed

File tree

1 file changed

+76
-76
lines changed

1 file changed

+76
-76
lines changed

.github/workflows/full_ci.yml

+76-76
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,78 @@ on:
66
types: [opened, synchronize, reopened]
77

88
jobs:
9-
docker_linux_tier1:
10-
name: Docker Linux Tier1
9+
style_check:
10+
name: Style check
1111
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup Rust toolchain
15+
run: sh ./ci/install-rust.sh
16+
- name: Check style
17+
run: sh ci/style.sh
18+
19+
build_channels_linux:
20+
name: Build Channels Linux
21+
runs-on: ubuntu-22.04
22+
env:
23+
OS: linux
24+
strategy:
25+
fail-fast: true
26+
max-parallel: 5
27+
matrix:
28+
toolchain:
29+
- stable
30+
- beta
31+
- nightly
32+
- 1.63.0
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Setup Rust toolchain
36+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
37+
- name: Execute build.sh
38+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
39+
40+
build_channels_macos:
41+
name: Build Channels macOS
42+
needs: macos
43+
env:
44+
OS: macos
1245
strategy:
1346
fail-fast: true
47+
max-parallel: 4
1448
matrix:
1549
target:
16-
- i686-unknown-linux-gnu
17-
- x86_64-unknown-linux-gnu
50+
- { toolchain: stable, os: macos-14 }
51+
- { toolchain: beta, os: macos-14 }
52+
- { toolchain: nightly, os: macos-14 }
53+
- { toolchain: 1.63.0, os: macos-14 }
54+
runs-on: ${{ matrix.target.os }}
1855
steps:
1956
- uses: actions/checkout@v4
2057
- name: Setup Rust toolchain
21-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
22-
- name: Execute run-docker.sh
23-
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
58+
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
59+
- name: Execute build.sh
60+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
61+
62+
build_channels_windows:
63+
name: Build Channels Windows
64+
runs-on: windows-2022
65+
env:
66+
OS: windows
67+
strategy:
68+
fail-fast: true
69+
matrix:
70+
toolchain:
71+
- 1.63.0
72+
- stable
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Self-update rustup
76+
run: rustup self update
77+
shell: bash
78+
- name: Execute build.sh
79+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
80+
shell: bash
2481

2582
macos:
2683
name: macOS
@@ -69,15 +126,22 @@ jobs:
69126
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
70127
shell: bash
71128

72-
style_check:
73-
name: Style check
129+
130+
docker_linux_tier1:
131+
name: Docker Linux Tier1
74132
runs-on: ubuntu-22.04
133+
strategy:
134+
fail-fast: true
135+
matrix:
136+
target:
137+
- i686-unknown-linux-gnu
138+
- x86_64-unknown-linux-gnu
75139
steps:
76140
- uses: actions/checkout@v4
77141
- name: Setup Rust toolchain
78-
run: sh ./ci/install-rust.sh
79-
- name: Check style
80-
run: sh ci/style.sh
142+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
143+
- name: Execute run-docker.sh
144+
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
81145

82146
docker_linux_tier2:
83147
name: Docker Linux Tier2
@@ -119,70 +183,6 @@ jobs:
119183
- name: Execute run-docker.sh
120184
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
121185

122-
build_channels_linux:
123-
name: Build Channels Linux
124-
needs: docker_linux_tier2
125-
runs-on: ubuntu-22.04
126-
env:
127-
OS: linux
128-
strategy:
129-
fail-fast: true
130-
max-parallel: 5
131-
matrix:
132-
toolchain:
133-
- stable
134-
- beta
135-
- nightly
136-
- 1.63.0
137-
steps:
138-
- uses: actions/checkout@v4
139-
- name: Setup Rust toolchain
140-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
141-
- name: Execute build.sh
142-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
143-
144-
build_channels_macos:
145-
name: Build Channels macOS
146-
needs: macos
147-
env:
148-
OS: macos
149-
strategy:
150-
fail-fast: true
151-
max-parallel: 4
152-
matrix:
153-
target:
154-
- { toolchain: stable, os: macos-14 }
155-
- { toolchain: beta, os: macos-14 }
156-
- { toolchain: nightly, os: macos-14 }
157-
- { toolchain: 1.63.0, os: macos-14 }
158-
runs-on: ${{ matrix.target.os }}
159-
steps:
160-
- uses: actions/checkout@v4
161-
- name: Setup Rust toolchain
162-
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
163-
- name: Execute build.sh
164-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
165-
166-
build_channels_windows:
167-
name: Build Channels Windows
168-
runs-on: windows-2022
169-
env:
170-
OS: windows
171-
strategy:
172-
fail-fast: true
173-
matrix:
174-
toolchain:
175-
- 1.63.0
176-
- stable
177-
steps:
178-
- uses: actions/checkout@v4
179-
- name: Self-update rustup
180-
run: rustup self update
181-
shell: bash
182-
- name: Execute build.sh
183-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
184-
shell: bash
185-
186186
check_cfg:
187187
name: "Check #[cfg]s"
188188
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)