Skip to content

Commit 12b2319

Browse files
committed
ci: test docker on ubuntu:lateset
1 parent 43cff6e commit 12b2319

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ jobs:
8787
matrix:
8888
os:
8989
- ubuntu-20.04
90+
container:
91+
- "ubuntu_node.dockerfile"
92+
- "ubuntu_stable_node.dockerfile"
9093
node:
9194
- 14
9295
pnpm:
@@ -124,6 +127,6 @@ jobs:
124127
- name: Build
125128
id: docker_build
126129
run: |
127-
pnpm build.docker
130+
docker build -f ./building/docker/${{ matrix.container }} -t setup_cpp .
128131
env:
129132
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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" ]

0 commit comments

Comments
 (0)