@@ -19,6 +19,7 @@ The package can be used locally or from CI services like GitHub Actions. Stay tu
19
19
- gcc
20
20
- cmake
21
21
- ninja
22
+ - vcpkg
22
23
- meson
23
24
- conan
24
25
- ccache
@@ -42,26 +43,26 @@ Tip: You can automate downloading using `wget`, `curl` or other similar tools.
42
43
43
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
45
45
- An example that installs llvm, cmake, ninja, ccache, and conan :
46
+ An example that installs llvm, cmake, ninja, ccache, and vcpkg :
46
47
47
48
``` ps1
48
49
# windows example (open shell as admin)
49
50
curl -O "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_windows.exe"
50
- ./setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --conan true
51
+ ./setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
51
52
```
52
53
53
54
``` ps1
54
55
# linux example
55
56
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
56
57
chmod +x setup_cpp_linux
57
- sudo ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --conan true
58
+ sudo ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
58
59
```
59
60
60
61
``` ps1
61
62
# mac example
62
63
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_mac"
63
64
chmod +x setup_cpp_mac
64
- sudo ./setup_cpp_mac --compiler llvm --cmake true --ninja true --ccache true --conan true
65
+ sudo ./setup_cpp_mac --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
65
66
```
66
67
67
68
NOTE: In the ` compiler ` entry, you can specify the version after ` - ` like ` llvm-11 ` .
@@ -76,19 +77,19 @@ On Windows
76
77
``` ps1
77
78
# open shell as admin
78
79
curl "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
79
- node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --conan true
80
+ node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
80
81
```
81
82
82
83
On Linux or Mac:
83
84
84
85
``` ps1
85
86
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
86
- sudo node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --conan true
87
+ sudo node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
87
88
```
88
89
89
90
# Inside GitHub Actions
90
91
91
- Here is a complete cross-platform example that tests llvm and gcc. It also uses cmake, ninja, conan , cppcheck, and ccache.
92
+ Here is a complete cross-platform example that tests llvm and gcc. It also uses cmake, ninja, vcpkg , cppcheck, and ccache.
92
93
93
94
` .github/workflows/ci.yml ` :
94
95
@@ -144,8 +145,8 @@ RUN apt-get install -y --no-install-recommends ca-certificates wget unzip
144
145
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
145
146
RUN chmod +x ./setup_cpp_linux
146
147
147
- # install llvm, cmake, ninja, ccache, and conan
148
- RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --conan true
148
+ # install llvm, cmake, ninja, ccache, and vcpkg
149
+ RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
149
150
150
151
ENTRYPOINT [ "/bin/sh" ]
151
152
```
@@ -168,5 +169,4 @@ docker run -it setup_cpp
168
169
169
170
### Incomplete
170
171
171
- - [ ] msvc. It is implemented, but has bugs. See [ this issue] ( https://github.com/aminya/cpp/issues/1 )
172
- - [ ] vcpkg (TODO)
172
+ - msvc. It is implemented, but has bugs. See [ this issue] ( https://github.com/aminya/setup-cpp/issues/1 )
0 commit comments