@@ -19,6 +19,7 @@ The package can be used locally or from CI services like GitHub Actions. Stay tu
1919- gcc
2020- cmake
2121- ninja
22+ - vcpkg
2223- meson
2324- conan
2425- ccache
@@ -42,26 +43,26 @@ Tip: You can automate downloading using `wget`, `curl` or other similar tools.
4243
4344Download 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.
4445
45- An example that installs llvm, cmake, ninja, ccache, and conan :
46+ An example that installs llvm, cmake, ninja, ccache, and vcpkg :
4647
4748``` ps1
4849# windows example (open shell as admin)
4950curl -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
5152```
5253
5354``` ps1
5455# linux example
5556wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
5657chmod +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
5859```
5960
6061``` ps1
6162# mac example
6263wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_mac"
6364chmod +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
6566```
6667
6768NOTE: In the ` compiler ` entry, you can specify the version after ` - ` like ` llvm-11 ` .
@@ -76,19 +77,19 @@ On Windows
7677``` ps1
7778# open shell as admin
7879curl "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
8081```
8182
8283On Linux or Mac:
8384
8485``` ps1
8586wget "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
8788```
8889
8990# Inside GitHub Actions
9091
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.
9293
9394` .github/workflows/ci.yml ` :
9495
@@ -144,8 +145,8 @@ RUN apt-get install -y --no-install-recommends ca-certificates wget unzip
144145RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
145146RUN chmod +x ./setup_cpp_linux
146147
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
149150
150151ENTRYPOINT [ "/bin/sh" ]
151152```
@@ -168,5 +169,4 @@ docker run -it setup_cpp
168169
169170### Incomplete
170171
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