File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 87
87
matrix :
88
88
os :
89
89
- ubuntu-20.04
90
+ container :
91
+ - " ubuntu_node.dockerfile"
92
+ - " ubuntu_stable_node.dockerfile"
90
93
node :
91
94
- 14
92
95
pnpm :
@@ -124,6 +127,6 @@ jobs:
124
127
- name : Build
125
128
id : docker_build
126
129
run : |
127
- pnpm build. docker
130
+ docker build -f ./building/ docker/${{ matrix.container }} -t setup_cpp .
128
131
env :
129
132
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:latest
2
+
3
+ # set time-zone
4
+ ENV TZ=Canada/Pacific
5
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
6
+
7
+ # The nodejs that ships on ubuntu:latest servers is too old.
8
+ ENV DEBIAN_FRONTEND=noninteractive
9
+ RUN apt-get update -qq
10
+ RUN apt-get install -y --no-install-recommends curl gnupg ca-certificates
11
+ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
12
+ RUN apt-get install -y --no-install-recommends nodejs
13
+
14
+ # add setup_cpp.js
15
+ ADD "./dist/" "/"
16
+ WORKDIR "/"
17
+
18
+ # run installation
19
+ RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --cppcheck true --ccache true --vcpkg true --doxygen true --gcovr true
20
+
21
+ # reload the environment and print the versions
22
+ CMD source ~/.profile && clang --version && cmake --version && ninja --version && ccache --version && cppcheck --version && vcpkg --version && doxygen --version && dot --version && gcovr --version
23
+
24
+ ENTRYPOINT [ "/bin/sh" ]
You can’t perform that action at this time.
0 commit comments