Skip to content

Commit 1ea04a0

Browse files
committed
testing
Signed-off-by: Yuki Okushi <[email protected]>
1 parent 875f3a6 commit 1ea04a0

File tree

3 files changed

+2
-357
lines changed

3 files changed

+2
-357
lines changed

.github/workflows/bors.yml

Lines changed: 1 addition & 354 deletions
Original file line numberDiff line numberDiff line change
@@ -8,163 +8,19 @@ on:
88

99
permissions: {}
1010
jobs:
11-
docker_linux_tier1:
12-
permissions:
13-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
14-
contents: read # to fetch code (actions/checkout)
15-
16-
name: Docker Linux Tier1
17-
runs-on: ubuntu-22.04
18-
strategy:
19-
fail-fast: true
20-
matrix:
21-
target: [
22-
i686-unknown-linux-gnu,
23-
x86_64-unknown-linux-gnu,
24-
]
25-
steps:
26-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
27-
with:
28-
github_token: "${{ secrets.GITHUB_TOKEN }}"
29-
- uses: actions/checkout@v3
30-
- name: Setup Rust toolchain
31-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
32-
- name: Execute run-docker.sh
33-
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
34-
35-
macos:
36-
permissions:
37-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
38-
contents: read # to fetch code (actions/checkout)
39-
40-
name: macOS
41-
runs-on: macos-12
42-
strategy:
43-
fail-fast: true
44-
matrix:
45-
target: [
46-
x86_64-apple-darwin,
47-
]
48-
steps:
49-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
50-
with:
51-
github_token: "${{ secrets.GITHUB_TOKEN }}"
52-
- uses: actions/checkout@v3
53-
- name: Setup Rust toolchain
54-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
55-
- name: Execute run.sh
56-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
57-
58-
windows:
59-
permissions:
60-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
61-
contents: read # to fetch code (actions/checkout)
62-
63-
name: Windows
64-
runs-on: windows-2022
65-
env:
66-
OS: windows
67-
strategy:
68-
fail-fast: true
69-
matrix:
70-
include:
71-
- target: x86_64-pc-windows-gnu
72-
env:
73-
ARCH_BITS: 64
74-
ARCH: x86_64
75-
- target: x86_64-pc-windows-msvc
76-
# Disabled because broken:
77-
# https://github.com/rust-lang/libc/issues/1592
78-
#- target: i686-pc-windows-gnu
79-
# env:
80-
# ARCH_BITS: 32
81-
# ARCH: i686
82-
- target: i686-pc-windows-msvc
83-
steps:
84-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
85-
with:
86-
github_token: "${{ secrets.GITHUB_TOKEN }}"
87-
- uses: actions/checkout@v3
88-
- name: Self-update rustup
89-
run: rustup self update
90-
shell: bash
91-
- name: Setup Rust toolchain
92-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
93-
shell: bash
94-
- name: Execute run.sh
95-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
96-
shell: bash
97-
98-
style_check:
99-
permissions:
100-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
101-
contents: read # to fetch code (actions/checkout)
102-
103-
name: Style check
104-
runs-on: ubuntu-22.04
105-
steps:
106-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
107-
with:
108-
github_token: "${{ secrets.GITHUB_TOKEN }}"
109-
- uses: actions/checkout@v3
110-
- name: Setup Rust toolchain
111-
run: sh ./ci/install-rust.sh
112-
- name: Check style
113-
run: sh ci/style.sh
114-
11511
docker_linux_tier2:
11612
permissions:
11713
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
11814
contents: read # to fetch code (actions/checkout)
11915

12016
name: Docker Linux Tier2
121-
needs: [docker_linux_tier1, style_check]
12217
runs-on: ubuntu-22.04
12318
strategy:
12419
fail-fast: true
12520
max-parallel: 12
12621
matrix:
12722
target: [
128-
# FIXME: Mysterious failures in CI, see
129-
# https://github.com/rust-lang/libc/issues/2081
130-
# aarch64-linux-android,
131-
aarch64-unknown-linux-gnu,
132-
aarch64-unknown-linux-musl,
133-
# FIXME: The emulator gets stuck.
134-
# arm-linux-androideabi,
135-
arm-unknown-linux-gnueabihf,
136-
arm-unknown-linux-musleabihf,
137-
asmjs-unknown-emscripten,
138-
# FIXME: Started to fail since 2022-10-10:
139-
# error: linking with `i686-linux-android-gcc` failed: exit status: 1
140-
# ld: error: cannot find -lunwind
141-
# i686-linux-android,
142-
i686-unknown-linux-musl,
143-
mips-unknown-linux-gnu,
144-
mips-unknown-linux-musl,
145-
# FIXME: Somehow failed on CI
146-
# https://github.com/rust-lang/libc/runs/1659882216
147-
# mips64-unknown-linux-gnuabi64,
148-
# mips64el-unknown-linux-gnuabi64,
149-
mipsel-unknown-linux-musl,
150-
powerpc-unknown-linux-gnu,
151-
powerpc64-unknown-linux-gnu,
152-
powerpc64le-unknown-linux-gnu,
153-
s390x-unknown-linux-gnu,
154-
riscv64gc-unknown-linux-gnu,
155-
# FIXME: A recent nightly causes a linker failure:
156-
# https://github.com/rust-lang/rust/issues/76679
157-
# See this comment for more details:
158-
# https://github.com/rust-lang/libc/pull/2225#issuecomment-880696737
159-
#wasm32-wasi,
160-
sparc64-unknown-linux-gnu,
161-
wasm32-unknown-emscripten,
162-
x86_64-linux-android,
163-
x86_64-unknown-linux-gnux32,
164-
x86_64-unknown-linux-musl,
165-
# FIXME: It seems some items in `src/unix/mod.rs`
166-
# aren't defined on redox actually.
167-
# x86_64-unknown-redox,
23+
i686-linux-android,
16824
]
16925
steps:
17026
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -176,195 +32,6 @@ jobs:
17632
- name: Execute run-docker.sh
17733
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
17834

179-
# These targets are tier 3 or otherwise need to have CI build std via -Zbuild-std.
180-
# Because of this, only the nightly compiler can be used on these targets.
181-
docker_linux_build_std:
182-
permissions:
183-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
184-
contents: read # to fetch code (actions/checkout)
185-
186-
if: ${{ false }} # This is currently broken
187-
name: Docker Linux Build-Std Targets
188-
needs: [docker_linux_tier1, style_check]
189-
runs-on: ubuntu-22.04
190-
strategy:
191-
fail-fast: true
192-
max-parallel: 12
193-
matrix:
194-
target: [
195-
armv7-unknown-linux-uclibceabihf
196-
]
197-
steps:
198-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
199-
with:
200-
github_token: "${{ secrets.GITHUB_TOKEN }}"
201-
- uses: actions/checkout@v3
202-
- name: Setup Rust toolchain
203-
run: TOOLCHAIN=nightly INSTALL_RUST_SRC=1 sh ./ci/install-rust.sh
204-
- name: Execute run-docker.sh
205-
run: LIBC_CI=1 TOOLCHAIN=nightly LIBC_CI_ZBUILD_STD=1 sh ./ci/run-docker.sh ${{ matrix.target }}
206-
207-
# devkitpro's pacman needs to be connected from Docker.
208-
docker_switch:
209-
permissions:
210-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
211-
contents: read # to fetch code (actions/checkout)
212-
213-
name: Docker Switch
214-
needs: [docker_linux_tier1, style_check]
215-
runs-on: ubuntu-22.04
216-
steps:
217-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
218-
with:
219-
github_token: "${{ secrets.GITHUB_TOKEN }}"
220-
- uses: actions/checkout@v3
221-
- name: Setup Rust toolchain
222-
run: sh ./ci/install-rust.sh
223-
- name: Execute run-docker.sh
224-
run: LIBC_CI=1 sh ./ci/run-docker.sh switch
225-
226-
build_channels_linux:
227-
permissions:
228-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
229-
contents: read # to fetch code (actions/checkout)
230-
231-
name: Build Channels Linux
232-
needs: docker_linux_tier2
233-
runs-on: ubuntu-22.04
234-
env:
235-
OS: linux
236-
strategy:
237-
fail-fast: true
238-
max-parallel: 5
239-
matrix:
240-
toolchain: [
241-
stable,
242-
beta,
243-
nightly,
244-
1.13.0,
245-
1.19.0,
246-
1.24.0,
247-
1.25.0,
248-
1.30.0,
249-
]
250-
steps:
251-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
252-
with:
253-
github_token: "${{ secrets.GITHUB_TOKEN }}"
254-
- uses: actions/checkout@v3
255-
- name: Setup Rust toolchain
256-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
257-
- name: Execute build.sh
258-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
259-
260-
build_channels_macos:
261-
permissions:
262-
contents: read # to fetch code (actions/checkout)
263-
264-
name: Build Channels macOS
265-
needs: macos
266-
# FIXME: Use macOS 11 for now as CI failed with a linker error on macOS 12 image:
267-
# ld: in /.../x86_64-apple-darwin/lib/libstd-a4729905.rlib(rust.metadata.bin),
268-
# archive member 'rust.metadata.bin' with length 2958149 is not mach-o or llvm bitcode file '/.../x86_64-apple-darwin/lib/libstd-a4729905.rlib'
269-
# Possibly related: https://github.com/actions/runner-images/issues/6350
270-
runs-on: macos-11
271-
env:
272-
OS: macos
273-
strategy:
274-
fail-fast: true
275-
max-parallel: 4
276-
matrix:
277-
toolchain: [
278-
stable,
279-
beta,
280-
nightly,
281-
1.13.0,
282-
1.19.0,
283-
1.24.0,
284-
1.25.0,
285-
1.30.0,
286-
]
287-
steps:
288-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
289-
with:
290-
github_token: "${{ secrets.GITHUB_TOKEN }}"
291-
- uses: actions/checkout@v3
292-
- name: Setup Rust toolchain
293-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
294-
- name: Execute build.sh
295-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
296-
297-
build_channels_windows:
298-
permissions:
299-
contents: read # to fetch code (actions/checkout)
300-
301-
name: Build Channels Windows
302-
runs-on: windows-2022
303-
env:
304-
OS: windows
305-
strategy:
306-
fail-fast: true
307-
matrix:
308-
toolchain: [
309-
1.19.0,
310-
1.24.0,
311-
1.25.0,
312-
1.30.0,
313-
stable,
314-
]
315-
steps:
316-
- uses: actions/checkout@v3
317-
- name: Self-update rustup
318-
run: rustup self update
319-
shell: bash
320-
- name: Execute build.sh
321-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh
322-
shell: bash
323-
324-
semver_linux:
325-
if: ${{ false }} # This is currently broken
326-
name: Semver Linux
327-
runs-on: ubuntu-22.04
328-
continue-on-error: true
329-
steps:
330-
- uses: actions/checkout@v3
331-
- name: Setup Rust toolchain
332-
# Should update the semverver revision in semver.sh if we touch nightly ver.
333-
run: TOOLCHAIN=nightly-2022-05-23 sh ./ci/install-rust.sh
334-
- name: Check breaking changes
335-
run: sh ci/semver.sh linux
336-
337-
semver_macos:
338-
if: ${{ false }} # This is currently broken
339-
name: Semver macOS
340-
runs-on: macos-12
341-
continue-on-error: true
342-
steps:
343-
- uses: actions/checkout@v3
344-
- name: Setup Rust toolchain
345-
# Pin nightly version to make semverver compilable.
346-
run: TOOLCHAIN=nightly-2022-05-23 sh ./ci/install-rust.sh
347-
- name: Check breaking changes
348-
run: sh ci/semver.sh macos
349-
350-
docs:
351-
permissions:
352-
actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
353-
contents: read # to fetch code (actions/checkout)
354-
355-
name: Generate documentation
356-
runs-on: ubuntu-22.04
357-
needs: docker_linux_tier2
358-
steps:
359-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
360-
with:
361-
github_token: "${{ secrets.GITHUB_TOKEN }}"
362-
- uses: actions/checkout@v3
363-
- name: Setup Rust toolchain
364-
run: sh ./ci/install-rust.sh
365-
- name: Generate documentation
366-
run: LIBC_CI=1 sh ci/dox.sh
367-
36835
# These jobs doesn't actually test anything, but they're only used to tell
36936
# bors the build completed, as there is no practical way to detect when a
37037
# workflow is successful listening to webhooks only.
@@ -376,17 +43,7 @@ jobs:
37643
if: github.event.pusher.name == 'bors' && success()
37744
runs-on: ubuntu-22.04
37845
needs: [
379-
docker_linux_tier1,
38046
docker_linux_tier2,
381-
#docker_linux_build_std,
382-
macos,
383-
windows,
384-
style_check,
385-
docker_switch,
386-
build_channels_linux,
387-
build_channels_macos,
388-
build_channels_windows,
389-
docs,
39047
]
39148

39249
steps:
@@ -398,17 +55,7 @@ jobs:
39855
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
39956
runs-on: ubuntu-22.04
40057
needs: [
401-
docker_linux_tier1,
40258
docker_linux_tier2,
403-
#docker_linux_build_std,
404-
macos,
405-
windows,
406-
style_check,
407-
docker_switch,
408-
build_channels_linux,
409-
build_channels_macos,
410-
build_channels_windows,
411-
docs,
41259
]
41360

41461
steps:

0 commit comments

Comments
 (0)