Skip to content

Commit 6cb604b

Browse files
committed
Auto merge of #2063 - JohnTitor:asmjs-ci, r=<try>
Re-enable CI for `asmjs-unknown-emscripten` #1591 was closed by #1697 but it was only for `wasm32-unknown-emscripten` actually. We should make a new issue and link to it instead if it's still broken. r? `@ghost`
2 parents 734bb32 + 8f6623f commit 6cb604b

File tree

3 files changed

+11
-307
lines changed

3 files changed

+11
-307
lines changed

.github/workflows/bors.yml

+2-242
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
@@ -96,46 +24,16 @@ jobs:
9624

9725
docker_linux_tier2:
9826
name: Docker Linux Tier2
99-
needs: [docker_linux_tier1, style_check]
10027
runs-on: ubuntu-20.04
10128
strategy:
10229
fail-fast: true
10330
max-parallel: 12
10431
matrix:
10532
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,
11233
# FIXME: Disabled because currently broken, see:
11334
# https://github.com/rust-lang/libc/issues/1591
114-
# 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,
35+
asmjs-unknown-emscripten,
36+
13937
]
14038
steps:
14139
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -147,128 +45,6 @@ jobs:
14745
- name: Execute run-docker.sh
14846
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
14947

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
27248

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

29563
steps:
@@ -301,15 +69,7 @@ jobs:
30169
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
30270
runs-on: ubuntu-20.04
30371
needs: [
304-
docker_linux_tier1,
30572
docker_linux_tier2,
306-
macos,
307-
windows,
308-
style_check,
309-
docker_switch,
310-
build_channels_linux,
311-
build_channels_macos,
312-
docs,
31373
]
31474

31575
steps:

.github/workflows/main.yml

-63
Original file line numberDiff line numberDiff line change
@@ -8,69 +8,6 @@ on:
88
- master
99

1010
jobs:
11-
docker_linux_tier1:
12-
name: Docker Linux Tier1
13-
runs-on: ubuntu-20.04
14-
strategy:
15-
fail-fast: true
16-
matrix:
17-
target: [
18-
i686-unknown-linux-gnu,
19-
x86_64-unknown-linux-gnu,
20-
]
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Setup Rust toolchain
24-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
25-
- name: Execute run-docker.sh
26-
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
27-
28-
macos:
29-
name: macOS
30-
runs-on: macos-10.15
31-
strategy:
32-
fail-fast: true
33-
matrix:
34-
target: [
35-
x86_64-apple-darwin,
36-
]
37-
steps:
38-
- uses: actions/checkout@v2
39-
- name: Setup Rust toolchain
40-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
41-
- name: Execute run.sh
42-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
43-
44-
windows:
45-
name: Windows
46-
runs-on: windows-2019
47-
env:
48-
OS: windows
49-
strategy:
50-
fail-fast: true
51-
matrix:
52-
include:
53-
- target: x86_64-pc-windows-gnu
54-
env:
55-
ARCH_BITS: 64
56-
ARCH: x86_64
57-
- target: x86_64-pc-windows-msvc
58-
# Disabled because broken:
59-
# https://github.com/rust-lang/libc/issues/1592
60-
#- target: i686-pc-windows-gnu
61-
# env:
62-
# ARCH_BITS: 32
63-
# ARCH: i686
64-
- target: i686-pc-windows-msvc
65-
steps:
66-
- uses: actions/checkout@v2
67-
- name: Setup Rust toolchain
68-
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
69-
shell: bash
70-
- name: Execute run.sh
71-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
72-
shell: bash
73-
7411
style_check:
7512
name: Style check
7613
runs-on: ubuntu-20.04

ci/docker/asmjs-unknown-emscripten/Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
FROM ubuntu:20.04
22

3-
RUN apt-get update && \
4-
apt-get install -y --no-install-recommends \
3+
# This is a workaround to avoid the interaction with tzdata.
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
ENV TZ=America/New_York
6+
7+
RUN apt-get update
8+
RUN apt-get install -y --no-install-recommends tzdata
9+
RUN apt-get install -y --no-install-recommends \
510
ca-certificates \
611
curl \
712
gcc \
@@ -18,5 +23,7 @@ RUN bash /emscripten.sh
1823
ENV PATH=$PATH:/rust/bin \
1924
CARGO_TARGET_ASMJS_UNKNOWN_EMSCRIPTEN_RUNNER=node
2025

26+
ENV EMCC_CFLAGS=-g3
27+
2128
COPY emscripten-entry.sh /
2229
ENTRYPOINT ["/emscripten-entry.sh"]

0 commit comments

Comments
 (0)