Skip to content

Commit 50c4edc

Browse files
authored
Merge pull request #353 from aminya/modern
fix: use the modern bundle in the docker images
2 parents d4b7fad + 7b7f98d commit 50c4edc

13 files changed

+17
-17
lines changed

dev/docker/ci/arch-gcc.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-arch:latest AS setup-cpp-arch-gcc
22

33
# install llvm
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler gcc && \
66
# arch cleanup
77
pacman -Scc --noconfirm && \

dev/docker/ci/arch-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-arch:latest AS setup-cpp-arch-llvm
22

33
# install llvm
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler llvm && \
66
# arch cleanup
77
pacman -Scc --noconfirm && \

dev/docker/ci/arch-mingw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-arch:latest AS setup-cpp-arch-mingw
22

33
# install mingw/powershell
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler mingw \
66
--powershell true && \
77
# arch cleanup

dev/docker/ci/arch.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ RUN pacman -Syuu --noconfirm && \
1515

1616
FROM --platform=$BUILDPLATFORM arch-nodejs AS setup-cpp-arch
1717

18-
COPY "./dist/legacy" "/usr/lib/setup-cpp/"
18+
COPY "./dist/modern" "/usr/lib/setup-cpp/"
1919

2020
# install the cpp tools
2121
RUN pacman -Syuu --noconfirm && \
2222
pacman-db-upgrade && \
23-
node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
23+
node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
2424
--cmake true \
2525
--ninja true \
2626
--task true \

dev/docker/ci/docker-ci.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ async function main() {
77
const dockerFileContent = await readFile(`./dev/docker/setup-cpp/setup-cpp-${name}.dockerfile`, "utf-8")
88
const modifiedDockerFile = dockerFileContent
99
// load the externally built setup-cpp
10-
.replace(/FROM (.*)/g, `FROM $1\n\nCOPY "./dist/legacy" "/usr/lib/setup-cpp/"`)
11-
.replace("setup-cpp ", "node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js ")
10+
.replace(/FROM (.*)/g, `FROM $1\n\nCOPY "./dist/modern" "/usr/lib/setup-cpp/"`)
11+
.replace("setup-cpp ", "node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs ")
1212
// remove the npm install line
1313
.replace(/# install setup-cpp\n\s*npm install -g setup-cpp.*\n/, "")
1414

dev/docker/ci/fedora-gcc.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-fedora:latest AS setup-cpp-fedora-gcc
22

33
# install gcc
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler gcc && \
66
# cleanup
77
dnf clean all && \

dev/docker/ci/fedora-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-fedora:latest AS setup-cpp-fedora-llvm
22

33
# install llvm
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler llvm && \
66
# cleanup
77
dnf clean all && \

dev/docker/ci/fedora-mingw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-fedora:latest AS setup-cpp-fedora-mingw
22

33
# install mingw
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler mingw \
66
--powershell true && \
77
# cleanup

dev/docker/ci/fedora.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ RUN dnf -y install nodejs npm && \
99

1010
FROM --platform=$BUILDPLATFORM fedora-nodejs AS setup-cpp-fedora
1111

12-
COPY "./dist/legacy" "/usr/lib/setup-cpp/"
12+
COPY "./dist/modern" "/usr/lib/setup-cpp/"
1313

1414
# install the cpp tools
15-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
15+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
1616
--cmake true \
1717
--ninja true \
1818
--task true \

dev/docker/ci/ubuntu-gcc.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM aminya/setup-cpp-ubuntu:latest AS setup-cpp-ubuntu-gcc
22

33
# install gcc
4-
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.js \
4+
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
55
--compiler gcc && \
66
# cleanup
77
nala autoremove -y && \

0 commit comments

Comments
 (0)