File tree Expand file tree Collapse file tree 1 file changed +26
-13
lines changed
Expand file tree Collapse file tree 1 file changed +26
-13
lines changed Original file line number Diff line number Diff line change 1212jobs :
1313 build-and-test :
1414 runs-on : ubuntu-latest
15+ container :
16+ image : ubuntu:22.04
1517
1618 steps :
17- - uses : actions/checkout@v3
18- - name : Checkout vcpkg
19+ - name : Checkout the repository
1920 uses : actions/checkout@v3
20- with :
21- repository : ' microsoft/vcpkg'
22- path : ' vcpkg'
2321
24- - name : Install vcpkg dependencies
22+ - name : Install prerequisites
2523 run : |
26- ./vcpkg/bootstrap-vcpkg.sh
27- ./vcpkg/vcpkg install curl jsoncpp nlohmann-json
24+ apt update
25+ apt full-upgrade -y
26+ apt auto-remove -y
27+ apt install -y build-essential g++ make cmake pkg-config git wget curl zip unzip tar
2828
29- - name : Configure CMake with vcpkg toolchain
29+ - name : Install vcpkg
3030 run : |
31- cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
31+ git clone https://github.com/microsoft/vcpkg.git /opt/vcpkg
32+ ./opt/vcpkg/bootstrap-vcpkg.sh
33+ ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg
3234
33- - name : Build
35+ - name : Clone project repository
3436 run : |
37+ git clone https://github.com/lk-libs/libcpp-http-client.git /root/libcpp-http-client
38+
39+ - name : Run cmake with vcpkg toolchain
40+ run : |
41+ cd /root/libcpp-http-client
42+ cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake
43+
44+ - name : Build the project
45+ run : |
46+ cd /root/libcpp-http-client
3547 cmake --build build --config Release
3648
37- - name : Test
49+ - name : Run tests
3850 run : |
39- ./build/test
51+ cd /root/libcpp-http-client
52+ ./build/test/test
You can’t perform that action at this time.
0 commit comments