Skip to content

Commit 0b3d2fa

Browse files
committed
v0.3.0
1 parent 9634608 commit 0b3d2fa

File tree

6 files changed

+50
-22
lines changed

6 files changed

+50
-22
lines changed

.vscode/settings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"cSpell.words": [
3+
"buildtools",
4+
"ccache",
5+
"cmake",
6+
"CPATH",
7+
"Cppcheck",
8+
"CPPFLAGS",
9+
"dyld",
10+
"eabi",
11+
"execa",
12+
"gcovr",
13+
"Graphviz",
14+
"isci",
15+
"LDFLAGS",
16+
"msbuild",
17+
"msvc",
18+
"msys",
19+
"multilib",
20+
"nothrow",
21+
"Opencppcoverage",
22+
"OSSDK",
23+
"untildify",
24+
"vcpkg",
25+
"visualc",
26+
"visualcpp"
27+
]
28+
}

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,55 +35,55 @@ The package can be used locally or from CI services like GitHub Actions. Stay tu
3535

3636
# From Terminal
3737

38-
You should download the exe file or the js file (if have Nodejs installed), and run it with the available options.
38+
You should download the executable file or the js file (if Nodejs installed), and run it with the available options.
3939

40-
Tip: You can automate downloading using `wget`, `curl` or other similar tools.
40+
Tip: You can automate downloading using `wget`, `curl`, or other similar tools.
4141

4242
### Executable
4343

44-
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.2.2), and run it with the available options.
44+
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.3.0), and run it with the available options.
4545

4646
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
4747

4848
```ps1
4949
# windows example (open shell as admin)
50-
curl -O "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_windows.exe"
50+
curl -O "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp_windows.exe"
5151
./setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
5252
```
5353

5454
```ps1
5555
# linux example
56-
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
56+
wget "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp_linux"
5757
chmod +x setup_cpp_linux
5858
sudo ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
5959
```
6060

6161
```ps1
6262
# mac example
63-
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_mac"
63+
wget "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp_mac"
6464
chmod +x setup_cpp_mac
6565
sudo ./setup_cpp_mac --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
6666
```
6767

6868
NOTE: In the `compiler` entry, you can specify the version after `-` like `llvm-11`.
69-
For the tools, instead of `true`, which chooses the default version, you can pass a specific version.
69+
For the tools, instead of `true` that chooses the default version, you can pass a specific version.
7070

7171
### With Nodejs
7272

73-
Download the `setup_cpp.js` file form [here](https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js), and run it with the available options.
73+
Download the `setup_cpp.js` file form [here](https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp.js), and run it with the available options.
7474

7575
On Windows
7676

7777
```ps1
7878
# open shell as admin
79-
curl "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
79+
curl "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp.js"
8080
node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
8181
```
8282

8383
On Linux or Mac:
8484

8585
```ps1
86-
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
86+
wget "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp.js"
8787
sudo node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
8888
```
8989

@@ -131,7 +131,7 @@ jobs:
131131

132132
# Inside Docker
133133

134-
Here is an example for using setup_cpp to make a builder image that has the cpp tools you need.
134+
Here is an example for using setup_cpp to make a builder image that has the Cpp tools you need.
135135

136136
```dockerfile
137137
# debian
@@ -142,7 +142,7 @@ WORKDIR "/"
142142
RUN apt-get update -qq
143143
RUN apt-get install -y --no-install-recommends apt-utils
144144
RUN apt-get install -y --no-install-recommends ca-certificates wget unzip
145-
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
145+
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.3.0/setup_cpp_linux"
146146
RUN chmod +x ./setup_cpp_linux
147147

148148
# install llvm, cmake, ninja, ccache, and vcpkg
@@ -159,7 +159,7 @@ If you want to build the ones included, then run:
159159
docker build -f ./building/docker/debian.dockerfile -t setup_cpp .
160160
```
161161

162-
Where you should use the path to the the docker after `-f`.
162+
Where you should use the path to the docker after `-f`.
163163

164164
After build, run the following to start an interactive shell in your container
165165

@@ -169,4 +169,4 @@ docker run -it setup_cpp
169169

170170
### Incomplete
171171

172-
- msvc. It is implemented, but has bugs. See [this issue](https://github.com/aminya/setup-cpp/issues/1)
172+
- `msvc`. It is implemented, but it has bugs. See [this issue](https://github.com/aminya/setup-cpp/issues/1)

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.

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export async function main(args: string[]): Promise<number> {
112112
// get the setup function
113113
const setupFunction = setups[tool]
114114

115-
// runnig the setup function for this tool
115+
// running the setup function for this tool
116116
try {
117117
// eslint-disable-next-line no-await-in-loop
118118
const installationInfo = await setupFunction(getVersion(tool, value), join(setupCppDir, tool), arch)
@@ -135,7 +135,7 @@ export async function main(args: string[]): Promise<number> {
135135
const maybeCompiler = opts.compiler
136136
try {
137137
if (maybeCompiler !== undefined) {
138-
// detecting the compiler version. Devide the given string by `-` and use the second element as the version
138+
// detecting the compiler version. Divide the given string by `-` and use the second element as the version
139139
const compilerAndMaybeVersion = maybeCompiler.split("-")
140140
const compiler = compilerAndMaybeVersion[0]
141141
let version: string | undefined
@@ -263,10 +263,10 @@ function maybeGetInput(key: string) {
263263
function getSuccessMessage(tool: string, installationInfo: InstallationInfo) {
264264
let msg = `${tool} was successfully installed`
265265
if ("installDir" in installationInfo) {
266-
msg += `\nThe installation direcotry is ${installationInfo.installDir}`
266+
msg += `\nThe installation directory is ${installationInfo.installDir}`
267267
}
268268
if (installationInfo.binDir !== "") {
269-
msg += `\nThe binary direcotry is ${installationInfo.binDir}`
269+
msg += `\nThe binary directory is ${installationInfo.binDir}`
270270
}
271271
return msg
272272
}

src/utils/setup/setupBin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export type InstallationInfo = {
3131
/**
3232
* A function that:
3333
*
34-
* - Downlodas and extracts a package
34+
* - Downloads and extracts a package
3535
* - Adds the bin path of the package to PATH
36-
* - Caches the dowloaded directory into tool cache for usage from other sessions
36+
* - Caches the downloaded directory into tool cache for usage from other sessions
3737
*
3838
* @returns The installation directory
3939
*/

0 commit comments

Comments
 (0)