forked from oraoto/pib
-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathemscripten-builder.dockerfile
More file actions
70 lines (57 loc) · 1.71 KB
/
Copy pathemscripten-builder.dockerfile
File metadata and controls
70 lines (57 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Bisecting for CloudFlare:
# Works (cloudflare)
# FROM emscripten/emsdk:3.1.43
# FROM emscripten/emsdk:3.1.44
# Broken (cloudflare)
# FROM emscripten/emsdk:3.1.67
# FROM emscripten/emsdk:3.1.55
# FROM emscripten/emsdk:3.1.51
# FROM emscripten/emsdk:3.1.47
# FROM emscripten/emsdk:3.1.45
# Keep this in sync with patch/emscripten-6.0.6.patch.
ARG EMSDK_VERSION="6.0.6"
FROM emscripten/emsdk:${EMSDK_VERSION}
MAINTAINER Sean Morris <sean@seanmorr.is>
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
RUN export TMPDIR=/dev/shm; \
install -d /dev/shm/apt-archives/partial; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive \
apt-get -o Dir::Cache::archives=/dev/shm/apt-archives --no-install-recommends -y install \
build-essential \
automake \
autoconf \
autogen \
libtool \
gettext \
shtool \
brotli \
pkgconf \
gperf \
groff \
bison \
flex \
gzip \
make \
re2c \
gdb \
git \
sed \
pv \
jq
COPY patch/emscripten-6.0.6.patch /tmp/emscripten.patch
RUN cd /emsdk/upstream/emscripten && {\
git apply --check /tmp/emscripten.patch;\
git apply /tmp/emscripten.patch;\
python3 -m compileall -q emcc.py tools;\
rm /tmp/emscripten.patch;\
}
COPY .github/bin/retry-embuilder.sh /usr/local/bin/retry-embuilder
COPY .github/bin/verify-emscripten-profile-runtime.sh /usr/local/bin/verify-emscripten-profile-runtime
COPY .github/bin/verify-emscripten-fibers.sh /usr/local/bin/verify-emscripten-fibers
COPY .github/bin/verify-emscripten-async-errors.sh /usr/local/bin/verify-emscripten-async-errors
RUN retry-embuilder build USER
RUN bash /usr/local/bin/verify-emscripten-profile-runtime
RUN bash /usr/local/bin/verify-emscripten-fibers
RUN bash /usr/local/bin/verify-emscripten-async-errors
RUN emcc --check