Skip to content

Commit 0332911

Browse files
committed
ci: reorder jobs, don't make native linux depend on tier 2 tests
(backport <#3891>) (cherry picked from commit 2e4e0ed)
1 parent 04b3b07 commit 0332911

File tree

1 file changed

+83
-84
lines changed

1 file changed

+83
-84
lines changed

.github/workflows/full_ci.yml

Lines changed: 83 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,86 @@ env:
1010
LIBC_CI: 1
1111

1212
jobs:
13-
docker_linux_tier1:
14-
name: Docker Linux Tier1
13+
style_check:
14+
name: Style check
1515
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Rust toolchain
19+
run: sh ./ci/install-rust.sh
20+
- name: Check style
21+
run: sh ci/style.sh
22+
23+
build_channels_linux:
24+
name: Build Channels Linux
25+
runs-on: ubuntu-22.04
26+
env:
27+
OS: linux
1628
strategy:
1729
fail-fast: true
30+
max-parallel: 5
31+
matrix:
32+
toolchain:
33+
- stable
34+
- beta
35+
- nightly
36+
# FIXME: Disabled due to:
37+
# error: failed to parse registry's information for: serde
38+
# 1.13.0,
39+
- 1.19.0
40+
- 1.24.0
41+
- 1.25.0
42+
- 1.30.0
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Setup Rust toolchain
46+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
47+
- name: Execute build.sh
48+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
49+
50+
build_channels_macos:
51+
name: Build Channels macOS
52+
needs: macos
53+
env:
54+
OS: macos
55+
strategy:
56+
fail-fast: true
57+
max-parallel: 4
1858
matrix:
1959
target:
20-
- i686-unknown-linux-gnu
21-
- x86_64-unknown-linux-gnu
60+
- { toolchain: stable, os: macos-13 }
61+
- { toolchain: beta, os: macos-13 }
62+
- { toolchain: nightly, os: macos-13 }
63+
runs-on: ${{ matrix.target.os }}
2264
steps:
2365
- uses: actions/checkout@v4
2466
- name: Setup Rust toolchain
25-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
26-
- name: Execute run-docker.sh
27-
run: sh ./ci/run-docker.sh ${{ matrix.target }}
67+
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
68+
- name: Execute build.sh
69+
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
70+
71+
build_channels_windows:
72+
name: Build Channels Windows
73+
runs-on: windows-2022
74+
env:
75+
OS: windows
76+
strategy:
77+
fail-fast: true
78+
matrix:
79+
toolchain:
80+
- 1.19.0
81+
- 1.24.0
82+
- 1.25.0
83+
- 1.30.0
84+
- stable
85+
steps:
86+
- uses: actions/checkout@v4
87+
- name: Self-update rustup
88+
run: rustup self update
89+
shell: bash
90+
- name: Execute build.sh
91+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
92+
shell: bash
2893

2994
macos:
3095
name: macOS
@@ -72,15 +137,21 @@ jobs:
72137
run: sh ./ci/run.sh ${{ matrix.target }}
73138
shell: bash
74139

75-
style_check:
76-
name: Style check
140+
docker_linux_tier1:
141+
name: Docker Linux Tier1
77142
runs-on: ubuntu-22.04
143+
strategy:
144+
fail-fast: true
145+
matrix:
146+
target:
147+
- i686-unknown-linux-gnu
148+
- x86_64-unknown-linux-gnu
78149
steps:
79150
- uses: actions/checkout@v4
80151
- name: Setup Rust toolchain
81-
run: sh ./ci/install-rust.sh
82-
- name: Check style
83-
run: sh ci/style.sh
152+
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
153+
- name: Execute run-docker.sh
154+
run: sh ./ci/run-docker.sh ${{ matrix.target }}
84155

85156
docker_linux_tier2:
86157
name: Docker Linux Tier2
@@ -122,78 +193,6 @@ jobs:
122193
- name: Execute run-docker.sh
123194
run: sh ./ci/run-docker.sh ${{ matrix.target }}
124195

125-
build_channels_linux:
126-
name: Build Channels Linux
127-
needs: docker_linux_tier2
128-
runs-on: ubuntu-22.04
129-
env:
130-
OS: linux
131-
strategy:
132-
fail-fast: true
133-
max-parallel: 5
134-
matrix:
135-
toolchain:
136-
- stable
137-
- beta
138-
- nightly
139-
# FIXME: Disabled due to:
140-
# error: failed to parse registry's information for: serde
141-
# 1.13.0,
142-
- 1.19.0
143-
- 1.24.0
144-
- 1.25.0
145-
- 1.30.0
146-
steps:
147-
- uses: actions/checkout@v4
148-
- name: Setup Rust toolchain
149-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
150-
- name: Execute build.sh
151-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
152-
153-
build_channels_macos:
154-
name: Build Channels macOS
155-
needs: macos
156-
env:
157-
OS: macos
158-
strategy:
159-
fail-fast: true
160-
max-parallel: 4
161-
matrix:
162-
target:
163-
- { toolchain: stable, os: macos-13 }
164-
- { toolchain: beta, os: macos-13 }
165-
- { toolchain: nightly, os: macos-13 }
166-
runs-on: ${{ matrix.target.os }}
167-
steps:
168-
- uses: actions/checkout@v4
169-
- name: Setup Rust toolchain
170-
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
171-
- name: Execute build.sh
172-
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
173-
174-
build_channels_windows:
175-
name: Build Channels Windows
176-
runs-on: windows-2022
177-
env:
178-
OS: windows
179-
strategy:
180-
fail-fast: true
181-
matrix:
182-
toolchain:
183-
- 1.19.0
184-
- 1.24.0
185-
- 1.25.0
186-
- 1.30.0
187-
- stable
188-
steps:
189-
- uses: actions/checkout@v4
190-
- name: Self-update rustup
191-
run: rustup self update
192-
shell: bash
193-
- name: Execute build.sh
194-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
195-
shell: bash
196-
197196
check_cfg:
198197
name: "Check #[cfg]s"
199198
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)