@@ -43,26 +43,26 @@ Tip: You can automate downloading using `wget`, `curl` or other similar tools.
43
43
44
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.
45
45
46
- An example that installs llvm, cmake, ninja, ccache, and conan :
46
+ An example that installs llvm, cmake, ninja, ccache, and vcpkg :
47
47
48
48
``` ps1
49
49
# windows example (open shell as admin)
50
50
curl -O "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_windows.exe"
51
- ./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
52
52
```
53
53
54
54
``` ps1
55
55
# linux example
56
56
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
57
57
chmod +x setup_cpp_linux
58
- 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
59
59
```
60
60
61
61
``` ps1
62
62
# mac example
63
63
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_mac"
64
64
chmod +x setup_cpp_mac
65
- 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
66
66
```
67
67
68
68
NOTE: In the ` compiler ` entry, you can specify the version after ` - ` like ` llvm-11 ` .
@@ -77,19 +77,19 @@ On Windows
77
77
``` ps1
78
78
# open shell as admin
79
79
curl "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
80
- 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
81
81
```
82
82
83
83
On Linux or Mac:
84
84
85
85
``` ps1
86
86
wget "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp.js"
87
- 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
88
88
```
89
89
90
90
# Inside GitHub Actions
91
91
92
- 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.
93
93
94
94
` .github/workflows/ci.yml ` :
95
95
@@ -145,8 +145,8 @@ RUN apt-get install -y --no-install-recommends ca-certificates wget unzip
145
145
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.2.2/setup_cpp_linux"
146
146
RUN chmod +x ./setup_cpp_linux
147
147
148
- # install llvm, cmake, ninja, ccache, and conan
149
- 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
150
150
151
151
ENTRYPOINT [ "/bin/sh" ]
152
152
```
0 commit comments