Skip to content

Commit 49248d2

Browse files
authored
Merge pull request #67 from aminya/notice [skip ci]
2 parents 27b4144 + 455c907 commit 49248d2

File tree

19 files changed

+42
-51
lines changed

19 files changed

+42
-51
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- ubuntu-20.04
9090
container:
9191
- "ubuntu_node.dockerfile"
92-
- "ubuntu_stable_node.dockerfile"
92+
- "ubuntu_20.04_node.dockerfile"
9393
node:
9494
- 14
9595
pnpm:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Here is an example for using setup_cpp to make a builder image that has the Cpp
180180

181181
```dockerfile
182182
#### Base Image
183-
FROM ubuntu:devel AS base
183+
FROM ubuntu:22.04 AS base
184184

185185
# add setup_cpp
186186
WORKDIR "/"
@@ -203,7 +203,7 @@ RUN bash -c 'source ~/.cpprc \
203203
&& make build'
204204

205205
### Running environment
206-
# use a distroless image or ubuntu:devel if you wish
206+
# use a distroless image or ubuntu:22.04 if you wish
207207
FROM gcr.io/distroless/cc
208208
# copy the built binaries and their runtime dependencies
209209
COPY --from=builder /home/app/build/my_exe/Release/ /home/app/
@@ -258,7 +258,7 @@ The following gives an example for setting up a C++ environment inside GitLab pi
258258
.gitlab-ci.yaml
259259
260260
```yaml
261-
image: ubuntu:devel
261+
image: ubuntu:22.04
262262

263263
stages:
264264
- test

dev/docker/ubuntu.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#### Base Image
2-
FROM ubuntu:devel AS base
2+
FROM ubuntu:22.04 AS base
33

44
# add setup_cpp
55
WORKDIR "/"
@@ -22,7 +22,7 @@ RUN bash -c 'source ~/.cpprc \
2222
&& make build'
2323

2424
### Running environment
25-
# use a distroless image or ubuntu:devel if you wish
25+
# use a distroless image or ubuntu:22.04 if you wish
2626
FROM gcr.io/distroless/cc
2727
# copy the built binaries and their runtime dependencies
2828
COPY --from=builder /home/app/build/my_exe/Release/ /home/app/

dev/docker/ubuntu_node.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:devel AS base
1+
FROM ubuntu:22.04 AS base
22

33
RUN apt-get update -qq
44
RUN apt-get install -y --no-install-recommends nodejs
@@ -21,7 +21,7 @@ RUN bash -c 'source ~/.cpprc \
2121
&& make build'
2222

2323
### Running environment
24-
# use a distroless image or ubuntu:devel if you wish
24+
# use a distroless image or ubuntu:22.04 if you wish
2525
FROM gcr.io/distroless/cc
2626
# copy the built binaries and their runtime dependencies
2727
COPY --from=builder /home/app/build/my_exe/Release/ /home/app/

dist/setup_cpp.js

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

dist/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.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"setup_cpp": "./dist/setup_cpp.js"
1313
},
1414
"scripts": {
15-
"build": "run-p test.tsc build.parcel copy.matchers",
15+
"build": "shx rm -rf dist/ && shx mkdir ./dist && run-p test.tsc build.parcel copy.matchers",
1616
"build.docker": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup_cpp .",
17-
"build.parcel": "shx rm -rf ./dist/*.js ./dist/*.js.map && cross-env NODE_ENV=production parcel build --detailed-report",
17+
"build.parcel": "cross-env NODE_ENV=production parcel build --detailed-report",
1818
"bump": "ncu -u -x execa && pnpm update",
1919
"clean": "shx rm -rf .parcel-cache dist exe",
20-
"copy.matchers": "shx rm -rf ./dist/*.json && shx cp ./src/gcc/gcc_matcher.json ./dist/ && shx cp ./src/msvc/msvc_matcher.json ./dist && shx cp ./src/python/python_matcher.json ./dist/ && shx cp ./src/llvm/llvm_matcher.json ./dist/ ",
20+
"copy.matchers": "shx cp ./src/gcc/gcc_matcher.json ./dist/ && shx cp ./src/msvc/msvc_matcher.json ./dist && shx cp ./src/python/python_matcher.json ./dist/ && shx cp ./src/llvm/llvm_matcher.json ./dist/ ",
2121
"dev": "cross-env NODE_ENV=development parcel watch",
2222
"format": "prettier --write .",
2323
"lint": "eslint . --fix",

src/doxygen/doxygen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { setupBrewPack } from "../utils/setup/setupBrewPack"
55
import { setupChocoPack } from "../utils/setup/setupChocoPack"
66
import { addBinExtension } from "../utils/extension/extension"
77
import { extractTar } from "../utils/setup/extract"
8-
import { info } from "../utils/io/io"
8+
import { notice } from "../utils/io/io"
99
import { setupGraphviz } from "../graphviz/graphviz"
1010
import { getVersion } from "../default_versions"
1111

@@ -47,7 +47,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
4747
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
4848
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
4949
} catch (err) {
50-
info(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
50+
notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
5151
installationInfo = setupAptPack("doxygen", undefined)
5252
}
5353
await setupGraphviz(getVersion("graphviz", undefined), "", arch)

src/gcc/gcc.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import semverMajor from "semver/functions/major"
77
import semverCoerce from "semver/functions/coerce"
88
import { setupMacOSSDK } from "../macos-sdk/macos-sdk"
99
import path from "path"
10-
import { warning } from "../utils/io/io"
10+
import { warning, info } from "../utils/io/io"
1111
import { isGitHubCI } from "../utils/env/isci"
12-
import { info } from "@actions/core"
1312

1413
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1514
export async function setupGcc(version: string, _setupDir: string, arch: string) {
@@ -37,19 +36,11 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
3736
}
3837
case "linux": {
3938
if (arch === "x64") {
40-
setupAptPack("gcc", version, [
41-
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
42-
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
43-
"ppa:ubuntu-toolchain-r/test",
44-
])
39+
setupAptPack("gcc", version, ["ppa:ubuntu-toolchain-r/test"])
4540
binDir = setupAptPack("g++", version, []).binDir
4641
} else {
4742
info(`Install g++-multilib because gcc for ${arch} was requested`)
48-
setupAptPack("gcc-multilib", version, [
49-
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
50-
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
51-
"ppa:ubuntu-toolchain-r/test",
52-
])
43+
setupAptPack("gcc-multilib", version, ["ppa:ubuntu-toolchain-r/test"])
5344
binDir = setupAptPack("g++-multilib", version, []).binDir
5445
}
5546
break
@@ -59,8 +50,6 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
5950
// case "none": {
6051
// if (arch === "arm" || arch === "arm64") {
6152
// return setupAptPack("gcc-arm-none-eabi", version, [
62-
// "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
63-
// "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
6453
// "ppa:ubuntu-toolchain-r/test",
6554
// ])
6655
// } else {

0 commit comments

Comments
 (0)