66 branches :
77 - libc-0.2
88
9- jobs :
10- docker_linux_tier1 :
11- permissions :
12- contents : read # to fetch code (actions/checkout)
13-
14- name : Docker Linux Tier1
15- runs-on : ubuntu-22.04
16- strategy :
17- fail-fast : true
18- matrix :
19- target : [
20- i686-unknown-linux-gnu,
21- x86_64-unknown-linux-gnu,
22- ]
23- steps :
24- - uses : actions/checkout@v4
25- - name : Setup Rust toolchain
26- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
27- - name : Execute run-docker.sh
28- run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
29-
30- macos :
31- permissions :
32- contents : read # to fetch code (actions/checkout)
33-
34- name : macOS
35- runs-on : macos-13
36- strategy :
37- fail-fast : true
38- matrix :
39- target : [
40- x86_64-apple-darwin,
41- ]
42- steps :
43- - uses : actions/checkout@v4
44- - name : Setup Rust toolchain
45- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
46- - name : Execute run.sh
47- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
48-
49- windows :
50- permissions :
51- contents : read # to fetch code (actions/checkout)
52-
53- name : Windows
54- runs-on : windows-2022
55- env :
56- OS : windows
57- strategy :
58- fail-fast : true
59- matrix :
60- include :
61- - target : x86_64-pc-windows-gnu
62- env :
63- ARCH_BITS : 64
64- ARCH : x86_64
65- - target : x86_64-pc-windows-msvc
66- # - target: i686-pc-windows-gnu
67- # env:
68- # ARCH_BITS: 32
69- # ARCH: i686
70- - target : i686-pc-windows-msvc
71- steps :
72- - uses : actions/checkout@v4
73- - name : Self-update rustup
74- run : rustup self update
75- shell : bash
76- - name : Setup Rust toolchain
77- run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
78- shell : bash
79- - name : Execute run.sh
80- run : LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
81- shell : bash
9+ env :
10+ LIBC_CI : 1
8211
12+ jobs :
8313 style_check :
84- permissions :
85- contents : read # to fetch code (actions/checkout)
86-
8714 name : Style check
8815 runs-on : ubuntu-22.04
8916 steps :
9421 run : sh ci/style.sh
9522
9623 docker_linux_tier2 :
97- permissions :
98- contents : read # to fetch code (actions/checkout)
99-
10024 name : Docker Linux Tier2
10125 needs : [docker_linux_tier1, style_check]
10226 runs-on : ubuntu-22.04
@@ -123,18 +47,17 @@ jobs:
12347 wasm32-unknown-emscripten,
12448 x86_64-linux-android,
12549 # FIXME: Exec format error (os error 8)
126- # x86_64-unknown-linux-gnux32,
127- x86_64-unknown-linux-musl,
50+ # - x86_64-unknown-linux-gnux32
51+ - x86_64-unknown-linux-musl
12852 # FIXME: It seems some items in `src/unix/mod.rs`
12953 # aren't defined on redox actually.
130- # x86_64-unknown-redox,
131- ]
54+ # - x86_64-unknown-redox
13255 steps :
13356 - uses : actions/checkout@v4
13457 - name : Setup Rust toolchain
13558 run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
13659 - name : Execute run-docker.sh
137- run : LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
60+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
13861
13962 # These targets are tier 3 or otherwise need to have CI build std via -Zbuild-std.
14063 # Because of this, only the nightly compiler can be used on these targets.
@@ -176,41 +99,33 @@ jobs:
17699 run : LIBC_CI=1 sh ./ci/run-docker.sh switch
177100
178101 build_channels_linux :
179- permissions :
180- contents : read # to fetch code (actions/checkout)
181-
182102 name : Build Channels Linux
183- needs : docker_linux_tier2
184103 runs-on : ubuntu-22.04
185104 env :
186105 OS : linux
187106 strategy :
188107 fail-fast : true
189108 max-parallel : 5
190109 matrix :
191- toolchain : [
192- stable,
193- beta,
194- nightly,
110+ toolchain :
111+ - stable
112+ - beta
113+ - nightly
195114 # FIXME: Disabled due to:
196115 # error: failed to parse registry's information for: serde
197- # 1.13.0,
198- 1.19.0,
199- 1.24.0,
200- 1.25.0,
201- 1.30.0,
202- ]
116+ # 1.13.0,
117+ - 1.19.0
118+ - 1.24.0
119+ - 1.25.0
120+ - 1.30.0
203121 steps :
204122 - uses : actions/checkout@v4
205123 - name : Setup Rust toolchain
206124 run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
207125 - name : Execute build.sh
208- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
126+ run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
209127
210128 build_channels_macos :
211- permissions :
212- contents : read # to fetch code (actions/checkout)
213-
214129 name : Build Channels macOS
215130 needs : macos
216131 env :
@@ -229,47 +144,142 @@ jobs:
229144 - name : Setup Rust toolchain
230145 run : TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
231146 - name : Execute build.sh
232- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
147+ run : TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
233148
234149 build_channels_windows :
235- permissions :
236- contents : read # to fetch code (actions/checkout)
237-
238150 name : Build Channels Windows
239151 runs-on : windows-2022
240152 env :
241153 OS : windows
242154 strategy :
243155 fail-fast : true
244156 matrix :
245- toolchain : [
246- 1.19.0,
247- 1.24.0,
248- 1.25.0,
249- 1.30.0,
250- stable,
251- ]
157+ toolchain :
158+ - 1.19.0
159+ - 1.24.0
160+ - 1.25.0
161+ - 1.30.0
162+ - stable
252163 steps :
253164 - uses : actions/checkout@v4
254165 - name : Self-update rustup
255166 run : rustup self update
256167 shell : bash
257168 - name : Execute build.sh
258- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
169+ run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
259170 shell : bash
260171
261- check_cfg :
262- permissions :
263- contents : read # to fetch code (actions/checkout)
172+ macos :
173+ name : macOS
174+ runs-on : macos-13
175+ strategy :
176+ fail-fast : true
177+ matrix :
178+ target :
179+ - x86_64-apple-darwin
180+ steps :
181+ - uses : actions/checkout@v4
182+ - name : Setup Rust toolchain
183+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
184+ - name : Execute run.sh
185+ run : sh ./ci/run.sh ${{ matrix.target }}
264186
187+ windows :
188+ name : Windows
189+ runs-on : windows-2022
190+ env :
191+ OS : windows
192+ strategy :
193+ fail-fast : true
194+ matrix :
195+ include :
196+ - target : x86_64-pc-windows-gnu
197+ env :
198+ ARCH_BITS : 64
199+ ARCH : x86_64
200+ - target : x86_64-pc-windows-msvc
201+ # - target: i686-pc-windows-gnu
202+ # env:
203+ # ARCH_BITS: 32
204+ # ARCH: i686
205+ - target : i686-pc-windows-msvc
206+ steps :
207+ - uses : actions/checkout@v4
208+ - name : Self-update rustup
209+ run : rustup self update
210+ shell : bash
211+ - name : Setup Rust toolchain
212+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
213+ shell : bash
214+ - name : Execute run.sh
215+ run : sh ./ci/run.sh ${{ matrix.target }}
216+ shell : bash
217+
218+ docker_linux_tier1 :
219+ name : Docker Linux Tier1
220+ runs-on : ubuntu-22.04
221+ strategy :
222+ fail-fast : true
223+ matrix :
224+ target :
225+ - i686-unknown-linux-gnu
226+ - x86_64-unknown-linux-gnu
227+ steps :
228+ - uses : actions/checkout@v4
229+ - name : Setup Rust toolchain
230+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
231+ - name : Execute run-docker.sh
232+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
233+
234+ docker_linux_tier2 :
235+ name : Docker Linux Tier2
236+ needs : [docker_linux_tier1, style_check]
237+ runs-on : ubuntu-22.04
238+ strategy :
239+ fail-fast : true
240+ max-parallel : 12
241+ matrix :
242+ target :
243+ - aarch64-linux-android
244+ - aarch64-unknown-linux-gnu
245+ - aarch64-unknown-linux-musl
246+ - arm-linux-androideabi
247+ - arm-unknown-linux-gnueabihf
248+ - arm-unknown-linux-musleabihf
249+ - i686-linux-android
250+ - i686-unknown-linux-musl
251+ - powerpc-unknown-linux-gnu
252+ - powerpc64-unknown-linux-gnu
253+ - powerpc64le-unknown-linux-gnu
254+ - s390x-unknown-linux-gnu
255+ - riscv64gc-unknown-linux-gnu
256+ - wasm32-wasip1
257+ - wasm32-wasip2
258+ - sparc64-unknown-linux-gnu
259+ - wasm32-unknown-emscripten
260+ - x86_64-linux-android
261+ # FIXME: Exec format error (os error 8)
262+ # - x86_64-unknown-linux-gnux32
263+ - x86_64-unknown-linux-musl
264+ # FIXME: It seems some items in `src/unix/mod.rs`
265+ # aren't defined on redox actually.
266+ # - x86_64-unknown-redox
267+ steps :
268+ - uses : actions/checkout@v4
269+ - name : Setup Rust toolchain
270+ run : TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
271+ - name : Execute run-docker.sh
272+ run : sh ./ci/run-docker.sh ${{ matrix.target }}
273+
274+ check_cfg :
265275 name : " Check #[cfg]s"
266276 runs-on : ubuntu-22.04
267277 steps :
268278 - uses : actions/checkout@v4
269279 - name : Setup Rust toolchain
270280 run : TOOLCHAIN=nightly sh ./ci/install-rust.sh
271281 - name : Build with check-cfg
272- run : LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
282+ run : LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
273283
274284 # One job that "summarizes" the success state of this pipeline. This can then be added to branch
275285 # protection, rather than having to add each job separately.
0 commit comments