-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.2021-06-21
47 lines (41 loc) · 1.64 KB
/
Dockerfile.2021-06-21
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
# Linux build environment for CI
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
git \
gnupg \
python3 \
wget \
# clang \
# clang-format \
cmake \
# llvm \
libc++-dev \
libc++abi-dev \
libgtk-3-dev \
liblz4-dev \
libpthread-stubs0-dev \
libsdl2-dev \
libvulkan-dev \
libx11-dev \
libx11-xcb-dev \
; \
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -; \
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main" > /etc/apt/sources.list.d/llvm-12.list; \
apt-get update; \
apt-get install -y --no-install-recommends \
clang-12 \
clang-format-12 \
llvm-12 \
; \
rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/clang-format-12 /usr/local/bin/clang-format
ENV CC clang-12
ENV CXX clang++-12
ENV AR llvm-ar-12