File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,20 @@ jobs:
1515
1616 steps :
1717 - uses : actions/checkout@v3
18+ - name : Checkout vcpkg
19+ uses : actions/checkout@v3
20+ with :
21+ repository : ' microsoft/vcpkg'
22+ path : ' vcpkg'
1823
19- - name : Install C++ compiler and tools
24+ - name : Install vcpkg dependencies
2025 run : |
21- sudo apt-get update
22- sudo apt-get install -y g++ make cmake libcurl4-openssl-dev libjson-c-dev pkg-config
26+ ./vcpkg/bootstrap-vcpkg.sh
27+ ./vcpkg/vcpkg install curl jsoncpp nlohmann-json
2328
24- - name : Configure CMake
29+ - name : Configure CMake with vcpkg toolchain
2530 run : |
26- cmake -B build -DCMAKE_BUILD_TYPE=Release
31+ cmake -B build -S . - DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
2732
2833 - name : Build
2934 run : |
You can’t perform that action at this time.
0 commit comments