Skip to content

Commit bfbfe9c

Browse files
committed
chore: v0.41.0 [skip test]
1 parent 7b3520d commit bfbfe9c

15 files changed

+56
-47
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ jobs:
241241
pnpm:
242242
- 9.9.0
243243
container:
244-
- { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.40.0" }
245-
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.40.0" }
246-
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.40.0" }
247-
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.40.0" }
248-
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.40.0" }
249-
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.40.0" }
244+
- { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.41.0" }
245+
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.41.0" }
246+
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.41.0" }
247+
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.41.0" }
248+
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.41.0" }
249+
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.41.0" }
250250
steps:
251251
- uses: actions/checkout@v4
252252
with:

README.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ Run `setup-cpp` with the available options.
3737
```shell
3838
# Windows example (open PowerShell as admin)
3939
npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
40-
41-
RefreshEnv.cmd # activate the environment
40+
# restart the shell to activate the environment
4241
```
4342

4443
```shell
4544
# Linux/Macos example
4645
sudo npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
47-
48-
source ~/.cpprc
46+
source ~/.cpprc # activate cpp environment variables
4947
```
5048

5149
NOTE: In the `compiler` entry, you can specify the version after `-` like `llvm-11.0.0`. For the tools, you can pass a specific version instead of `true` that chooses the default version
@@ -58,36 +56,41 @@ NOTE: setup-cpp requires Nodejs 12 or higher. If Nodejs shipped with your distri
5856

5957
#### With executable
6058

61-
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.40.0), and run it with the available options. You can also automate downloading using `wget`, `curl`, or other similar tools.
62-
63-
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
59+
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.41.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools.
6460

6561
```shell
66-
# windows example (open PowerShell as admin)
67-
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-windows.exe"
68-
./setup-cpp-x64-windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
62+
# windows x64
63+
curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-windows.exe"
6964

70-
RefreshEnv.cmd # activate cpp environment variables
71-
```
65+
# linux x64
66+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-linux"
67+
chmod +x ./setup-cpp
7268

73-
```shell
74-
# linux example
75-
wget "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-linux"
76-
chmod +x ./setup-cpp-x64-linux
77-
sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
69+
# macos arm64
70+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-arm64-macos"
71+
chmod +x ./setup-cpp
7872

79-
source ~/.cpprc # activate cpp environment variables
73+
# macos x64
74+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-macos"
75+
chmod +x ./setup-cpp
8076
```
8177

78+
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
79+
8280
```shell
83-
# macos example
84-
wget "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-macos"
85-
chmod +x ./setup-cpp-x64-macos
86-
sudo ./setup-cpp-x64-macos --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
81+
# windows example (open PowerShell as admin)
82+
./setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
83+
# restart the shell to activate the environment
84+
```
8785

86+
```shell
87+
# linux/macos example
88+
sudo ./setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
8889
source ~/.cpprc # activate cpp environment variables
8990
```
9091

92+
NOTE: On Unix systems, if you are already a root user (e.g., in a GitLab runner or Docker), you will not need to use `sudo`.
93+
9194
### Inside GitHub Actions
9295

9396
Here is a complete cross-platform example that tests llvm, gcc, and msvc. It also uses cmake, ninja, vcpkg, and cppcheck.
@@ -156,19 +159,19 @@ To provide fast development environments, `setup-cpp` provides several prebuilt
156159
You can use these images as a base image for your project.
157160

158161
```dockerfile
159-
FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.40.0 AS builder
162+
FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.41.0 AS builder
160163
```
161164

162165
```dockerfile
163-
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.40.0 AS builder
166+
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.41.0 AS builder
164167
```
165168

166169
```dockerfile
167-
FROM aminya/setup-cpp-fedora-llvm:40-0.40.0 AS builder
170+
FROM aminya/setup-cpp-fedora-llvm:40-0.41.0 AS builder
168171
```
169172

170173
```dockerfile
171-
FROM aminya/setup-cpp-arch-llvm:base-0.40.0 AS builder
174+
FROM aminya/setup-cpp-arch-llvm:base-0.41.0 AS builder
172175
```
173176

174177
The names are in the format `aminya/setup-cpp-<platform>-<compiler>:<platform_version>-<setup_cpp_version>`.
@@ -187,7 +190,7 @@ RUN apt-get update -qq && \
187190
# install nodejs
188191
apt-get install -y --no-install-recommends nodejs npm && \
189192
# install setup-cpp
190-
npm install -g setup-cpp@v0.40.0 && \
193+
npm install -g setup-cpp@v0.41.0 && \
191194
# install the compiler and tools
192195
setup-cpp \
193196
--nala true \
@@ -296,7 +299,7 @@ stages:
296299
apt-get install -y --no-install-recommends nodejs npm
297300

298301
# install setup-cpp
299-
npm install -g setup-cpp@v0.40.0
302+
npm install -g setup-cpp@v0.41.0
300303

301304
# install the compiler and tools
302305
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true

dev/docker/setup-cpp/setup-cpp-arch-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
66
# install nodejs
77
pacman -S --noconfirm --needed nodejs npm && \
88
# install setup-cpp
9-
npm install -g setup-cpp@v0.40.0 && \
9+
npm install -g setup-cpp@v0.41.0 && \
1010
# install the compiler and tools
1111
setup-cpp \
1212
--compiler llvm \

dev/docker/setup-cpp/setup-cpp-arch-mingw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
66
# install nodejs
77
pacman -S --noconfirm --needed nodejs npm && \
88
# install setup-cpp
9-
npm install -g setup-cpp@v0.40.0 && \
9+
npm install -g setup-cpp@v0.41.0 && \
1010
# install the compiler and tools
1111
setup-cpp \
1212
--compiler mingw \

dev/docker/setup-cpp/setup-cpp-fedora-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora
44
# install nodejs
55
RUN dnf -y install nodejs npm && \
66
# install setup-cpp
7-
npm install -g setup-cpp@v0.40.0 && \
7+
npm install -g setup-cpp@v0.41.0 && \
88
# install the compiler and tools
99
setup-cpp \
1010
--compiler llvm \

dev/docker/setup-cpp/setup-cpp-fedora-mingw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora-mingw
44
# install nodejs
55
RUN dnf -y install nodejs npm && \
66
# install setup-cpp
7-
npm install -g setup-cpp@v0.40.0 && \
7+
npm install -g setup-cpp@v0.41.0 && \
88
# install the compiler and tools
99
setup-cpp \
1010
--compiler mingw \

dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get update -qq && \
1111
apt-get update -qq && \
1212
apt-get install -y --no-install-recommends nodejs && \
1313
# install setup-cpp
14-
npm install -g setup-cpp@v0.40.0 && \
14+
npm install -g setup-cpp@v0.41.0 && \
1515
# install the compiler and tools
1616
setup-cpp \
1717
--nala true \

dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update -qq && \
55
# install nodejs
66
apt-get install -y --no-install-recommends nodejs npm && \
77
# install setup-cpp
8-
npm install -g setup-cpp@v0.40.0 && \
8+
npm install -g setup-cpp@v0.41.0 && \
99
# install the compiler and tools
1010
setup-cpp \
1111
--nala true \

dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update -qq && \
55
# install nodejs
66
apt-get install -y --no-install-recommends nodejs npm && \
77
# install setup-cpp
8-
npm install -g setup-cpp@v0.40.0 && \
8+
npm install -g setup-cpp@v0.41.0 && \
99
# install the compiler and tools
1010
setup-cpp \
1111
--nala true \

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

0 commit comments

Comments
 (0)