Skip to content

Commit 0c3b851

Browse files
authored
Merge pull request #182 from aminya/llvm-system [skip ci]
2 parents 1c504ab + d5232dc commit 0c3b851

35 files changed

+342
-211
lines changed

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["orta.vscode-jest", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Jest Current File",
8+
"runtimeExecutable": "sh",
9+
"program": "node_modules/.bin/jest",
10+
"args": ["${relativeFile}"],
11+
"console": "integratedTerminal",
12+
"internalConsoleOptions": "openOnFirstSessionStart"
13+
}
14+
]
15+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ If you want to build the ones included, then run:
209209
```shell
210210
git clone --recurse-submodules https://github.com/aminya/setup-cpp
211211
cd ./setup-cpp
212-
docker build -f ./dev/docker/setup-cpp-ubuntu.dockerfile -t setup-cpp .
212+
docker build -f ./dev/docker/setup-cpp-ubuntu.dockerfile -t setup-cpp-ubuntu .
213213
```
214214

215215
Where you should use the path to the dockerfile after `-f`.

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ignorePaths:
99
- dist/
1010
- dev/cpp_vcpkg_project
1111
- "**/node_modules/"
12+
- .vscode/extensions.json
1213
words:
1314
- aarch
1415
- clangd

dev/docker/__tests__/arch.dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ RUN pacman -Syuu --noconfirm && \
77
pacman-db-upgrade && \
88
# install nodejs
99
pacman -S --noconfirm --needed nodejs npm && \
10-
# install setup-cpp
11-
npm install -g setup-cpp@v0.31.1 && \
10+
1211
# install the compiler and tools
1312
node /usr/lib/setup-cpp/setup-cpp.js \
1413
--compiler llvm \

dev/docker/__tests__/fedora.dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ COPY "./dist/legacy" "/usr/lib/setup-cpp/"
55

66
# install nodejs
77
RUN dnf -y install nodejs npm && \
8-
# install setup-cpp
9-
npm install -g setup-cpp@v0.31.1 && \
8+
109
# install the compiler and tools
1110
node /usr/lib/setup-cpp/setup-cpp.js \
1211
--compiler llvm \

dev/docker/__tests__/ubuntu.dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ COPY "./dist/legacy" "/usr/lib/setup-cpp/"
66
RUN apt-get update -qq && \
77
# install nodejs
88
apt-get install -y --no-install-recommends nodejs npm && \
9-
# install setup-cpp
10-
npm install -g setup-cpp@v0.31.1 && \
9+
1110
# install the compiler and tools
1211
node /usr/lib/setup-cpp/setup-cpp.js \
1312
--nala true \

dev/scripts/generate-docker-tests.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ async function main() {
77
const dockerFileContent = await readFile(`./dev/docker/setup-cpp-${dockerFile}.dockerfile`, "utf-8")
88
const builderExample = await readFile(`./dev/docker/${dockerFile}.dockerfile`, "utf-8")
99

10-
// after the first FROM, add COPY "./dist/legacy" "/"
1110
const modifiedDockerFile = dockerFileContent
11+
// load the externally built setup-cpp
1212
.replace(/FROM (.*)/g, `FROM $1\n\nCOPY "./dist/legacy" "/usr/lib/setup-cpp/"`)
1313
.replace("setup-cpp ", "node /usr/lib/setup-cpp/setup-cpp.js ")
14+
// remove the npm install line
15+
.replace(/# install setup-cpp\n\s*npm install -g setup-cpp.*/, "")
1416

1517
// concat the two files
1618
const newDockerFileContent = `${modifiedDockerFile}\n${builderExample}`

dist/actions/setup-cpp.js

Lines changed: 16 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)