File tree Expand file tree Collapse file tree 2 files changed +45
-7
lines changed Expand file tree Collapse file tree 2 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -263,14 +263,14 @@ stages:
263
263
apt-get update -qq
264
264
apt-get install -y --no-install-recommends curl gnupg ca-certificates
265
265
266
- # keys used by apt
267
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
268
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
269
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
270
-
271
266
.setup-cpp : &setup-cpp |
272
- curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.35.6/setup-cpp-x64-linux"
273
- chmod +x setup-cpp-x64-linux
267
+ # install nodejs
268
+ apt-get install -y --no-install-recommends nodejs npm
269
+
270
+ # install setup-cpp
271
+ npm install -g setup-cpp@v0.35.6
272
+
273
+ # install the compiler and tools
274
274
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
275
275
source ~/.cpprc
276
276
Original file line number Diff line number Diff line change
1
+ # ### Base Image
2
+ FROM ubuntu:20.04 as setup-cpp-ubuntu-mingw
3
+
4
+ RUN apt-get update -qq && \
5
+ # install latest nodejs on ubuntu 20.04
6
+ apt-get update -qq && \
7
+ apt-get install -y --no-install-recommends curl gnupg ca-certificates && \
8
+ mkdir -p /etc/apt/keyrings && \
9
+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
10
+ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
11
+ apt-get update -qq && \
12
+ apt-get install -y --no-install-recommends nodejs && \
13
+ # install setup-cpp
14
+ npm install -g setup-cpp@v0.35.6 && \
15
+ # install the compiler and tools
16
+ setup-cpp \
17
+ --nala true \
18
+ --compiler mingw \
19
+ --cmake true \
20
+ --ninja true \
21
+ --task true \
22
+ --vcpkg true \
23
+ --python true \
24
+ --make true \
25
+ --cppcheck true \
26
+ --gcovr true \
27
+ --doxygen true \
28
+ --ccache true \
29
+ --powershell true && \
30
+ # cleanup
31
+ nala autoremove -y && \
32
+ nala autopurge -y && \
33
+ apt-get clean && \
34
+ nala clean --lists && \
35
+ rm -rf /var/lib/apt/lists/* && \
36
+ rm -rf /tmp/*
37
+
38
+ ENTRYPOINT ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments