Skip to content

Commit c4047a8

Browse files
author
Levent KARAGÖL
authored
Update test.yml
1 parent bbfface commit c4047a8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)