Skip to content

Commit 57eaeb3

Browse files
committed
Lighten CI for testing
1 parent 8bfffa2 commit 57eaeb3

File tree

1 file changed

+1
-240
lines changed

1 file changed

+1
-240
lines changed

.github/workflows/bors.yml

+1-240
Original file line numberDiff line numberDiff line change
@@ -7,78 +7,6 @@ on:
77
- try
88

99
jobs:
10-
docker_linux_tier1:
11-
name: Docker Linux Tier1
12-
runs-on: ubuntu-20.04
13-
strategy:
14-
fail-fast: true
15-
matrix:
16-
target: [
17-
i686-unknown-linux-gnu,
18-
x86_64-unknown-linux-gnu,
19-
]
20-
steps:
21-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
22-
with:
23-
github_token: "${{ secrets.GITHUB_TOKEN }}"
24-
- uses: actions/checkout@v2
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-
name: macOS
32-
runs-on: macos-10.15
33-
strategy:
34-
fail-fast: true
35-
matrix:
36-
target: [
37-
x86_64-apple-darwin,
38-
]
39-
steps:
40-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
41-
with:
42-
github_token: "${{ secrets.GITHUB_TOKEN }}"
43-
- uses: actions/checkout@v2
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-
name: Windows
51-
runs-on: windows-2019
52-
env:
53-
OS: windows
54-
strategy:
55-
fail-fast: true
56-
matrix:
57-
include:
58-
- target: x86_64-pc-windows-gnu
59-
env:
60-
ARCH_BITS: 64
61-
ARCH: x86_64
62-
- target: x86_64-pc-windows-msvc
63-
# Disabled because broken:
64-
# https://github.com/rust-lang/libc/issues/1592
65-
#- target: i686-pc-windows-gnu
66-
# env:
67-
# ARCH_BITS: 32
68-
# ARCH: i686
69-
- target: i686-pc-windows-msvc
70-
steps:
71-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
72-
with:
73-
github_token: "${{ secrets.GITHUB_TOKEN }}"
74-
- uses: actions/checkout@v2
75-
- name: Setup Rust toolchain
76-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
77-
shell: bash
78-
- name: Execute run.sh
79-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
80-
shell: bash
81-
8210
style_check:
8311
name: Style check
8412
runs-on: ubuntu-20.04
@@ -103,39 +31,10 @@ jobs:
10331
max-parallel: 12
10432
matrix:
10533
target: [
106-
aarch64-linux-android,
107-
aarch64-unknown-linux-gnu,
108-
aarch64-unknown-linux-musl,
109-
arm-linux-androideabi,
110-
arm-unknown-linux-gnueabihf,
111-
arm-unknown-linux-musleabihf,
11234
# FIXME: Disabled because currently broken, see:
11335
# https://github.com/rust-lang/libc/issues/1591
11436
asmjs-unknown-emscripten,
115-
i686-linux-android,
116-
i686-unknown-linux-musl,
117-
mips-unknown-linux-gnu,
118-
mips-unknown-linux-musl,
119-
# FIXME: Somehow failed on CI
120-
# https://github.com/rust-lang/libc/runs/1659882216
121-
# mips64-unknown-linux-gnuabi64,
122-
# mips64el-unknown-linux-gnuabi64,
123-
mipsel-unknown-linux-musl,
124-
powerpc-unknown-linux-gnu,
125-
powerpc64-unknown-linux-gnu,
126-
powerpc64le-unknown-linux-gnu,
127-
s390x-unknown-linux-gnu,
128-
riscv64gc-unknown-linux-gnu,
129-
# FIXME: Figure out why this is disabled.
130-
#wasm32-wasi,
131-
sparc64-unknown-linux-gnu,
132-
wasm32-unknown-emscripten,
133-
x86_64-linux-android,
134-
x86_64-unknown-linux-gnux32,
135-
x86_64-unknown-linux-musl,
136-
# FIXME: It seems some items in `src/unix/mod.rs`
137-
# aren't defined on redox actually.
138-
# x86_64-unknown-redox,
37+
13938
]
14039
steps:
14140
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -147,128 +46,6 @@ jobs:
14746
- name: Execute run-docker.sh
14847
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
14948

150-
# devkitpro's pacman needs to be connected from Docker.
151-
docker_switch:
152-
name: Docker Switch
153-
needs: [docker_linux_tier1, style_check]
154-
runs-on: ubuntu-20.04
155-
strategy:
156-
fail-fast: true
157-
steps:
158-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
159-
with:
160-
github_token: "${{ secrets.GITHUB_TOKEN }}"
161-
- uses: actions/checkout@v2
162-
- name: Setup Rust toolchain
163-
run: sh ./ci/install-rust.sh
164-
- name: Execute run-docker.sh
165-
run: LIBC_CI=1 sh ./ci/run-docker.sh switch
166-
167-
build_channels_linux:
168-
name: Build Channels Linux
169-
needs: docker_linux_tier2
170-
runs-on: ubuntu-20.04
171-
env:
172-
OS: linux
173-
strategy:
174-
fail-fast: true
175-
max-parallel: 5
176-
matrix:
177-
toolchain: [
178-
stable,
179-
beta,
180-
nightly,
181-
1.13.0,
182-
1.19.0,
183-
1.24.0,
184-
1.25.0,
185-
1.30.0,
186-
]
187-
steps:
188-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
189-
with:
190-
github_token: "${{ secrets.GITHUB_TOKEN }}"
191-
- uses: actions/checkout@v2
192-
- name: Setup Rust toolchain
193-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
194-
- name: Execute build.sh
195-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
196-
197-
build_channels_macos:
198-
name: Build Channels macOS
199-
needs: macos
200-
runs-on: macos-10.15
201-
env:
202-
OS: macos
203-
strategy:
204-
fail-fast: true
205-
max-parallel: 4
206-
matrix:
207-
toolchain: [
208-
stable,
209-
beta,
210-
nightly,
211-
1.13.0,
212-
1.19.0,
213-
1.24.0,
214-
1.25.0,
215-
1.30.0,
216-
]
217-
steps:
218-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
219-
with:
220-
github_token: "${{ secrets.GITHUB_TOKEN }}"
221-
- uses: actions/checkout@v2
222-
- name: Setup Rust toolchain
223-
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
224-
- name: Execute build.sh
225-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
226-
227-
semver_linux:
228-
name: Semver Linux
229-
needs: build_channels_linux
230-
runs-on: ubuntu-20.04
231-
continue-on-error: true
232-
strategy:
233-
fail-fast: true
234-
steps:
235-
- uses: actions/checkout@v2
236-
- name: Setup Rust toolchain
237-
# Should update the semverver revision in semver.sh if we touch nightly ver.
238-
run: TOOLCHAIN=nightly-2020-11-19 sh ./ci/install-rust.sh
239-
- name: Check breaking changes
240-
run: sh ci/semver.sh linux
241-
242-
semver_macos:
243-
name: Semver macOS
244-
needs: build_channels_macos
245-
runs-on: macos-10.15
246-
continue-on-error: true
247-
strategy:
248-
fail-fast: true
249-
steps:
250-
- uses: actions/checkout@v2
251-
- name: Setup Rust toolchain
252-
# FIXME: Pin nightly version to make semverver compilable.
253-
run: TOOLCHAIN=nightly-2020-11-19 sh ./ci/install-rust.sh
254-
- name: Check breaking changes
255-
run: sh ci/semver.sh macos
256-
257-
docs:
258-
name: Generate documentation
259-
runs-on: ubuntu-20.04
260-
needs: docker_linux_tier2
261-
strategy:
262-
fail-fast: true
263-
steps:
264-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
265-
with:
266-
github_token: "${{ secrets.GITHUB_TOKEN }}"
267-
- uses: actions/checkout@v2
268-
- name: Setup Rust toolchain
269-
run: sh ./ci/install-rust.sh
270-
- name: Generate documentation
271-
run: LIBC_CI=1 sh ci/dox.sh
27249

27350
# These jobs doesn't actually test anything, but they're only used to tell
27451
# bors the build completed, as there is no practical way to detect when a
@@ -281,15 +58,7 @@ jobs:
28158
if: github.event.pusher.name == 'bors' && success()
28259
runs-on: ubuntu-20.04
28360
needs: [
284-
docker_linux_tier1,
28561
docker_linux_tier2,
286-
macos,
287-
windows,
288-
style_check,
289-
docker_switch,
290-
build_channels_linux,
291-
build_channels_macos,
292-
docs,
29362
]
29463

29564
steps:
@@ -301,15 +70,7 @@ jobs:
30170
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
30271
runs-on: ubuntu-20.04
30372
needs: [
304-
docker_linux_tier1,
30573
docker_linux_tier2,
306-
macos,
307-
windows,
308-
style_check,
309-
docker_switch,
310-
build_channels_linux,
311-
build_channels_macos,
312-
docs,
31374
]
31475

31576
steps:

0 commit comments

Comments
 (0)