11
11
- name : install libraries
12
12
run : sudo apt-get update && sudo apt-get install -y libbrotli-dev libcurl4-openssl-dev
13
13
- name : build and run tests
14
- run : cd test && make -j4
14
+ run : cd test && make
15
15
- name : run fuzz test target
16
16
run : cd test && make fuzz_test
17
17
21
21
- name : checkout
22
22
uses : actions/checkout@v4
23
23
- name : build and run tests
24
- run : |
25
- cd test && make -j2
24
+ run : cd test && make
25
+ - name : run fuzz test target
26
+ run : cd test && make fuzz_test
26
27
27
28
windows :
28
29
runs-on : windows-latest
@@ -39,18 +40,26 @@ jobs:
39
40
script : |
40
41
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
41
42
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
42
- - name : setup msbuild on windows
43
+ - name : Setup msbuild on windows
43
44
uses : microsoft/setup-msbuild@v2
44
45
- name : Install libraries
45
46
run : |
46
47
vcpkg install gtest curl zlib brotli
47
48
choco install openssl
48
- - name : Configure CMake for Release
49
+
50
+ - name : Configure CMake with SSL
49
51
run : cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake -DHTTPLIB_TEST=ON -DHTTPLIB_REQUIRE_OPENSSL=ON -DHTTPLIB_REQUIRE_ZLIB=ON -DHTTPLIB_REQUIRE_BROTLI=ON
50
- - name : Build with CMake
52
+ - name : Build with with SSL
51
53
run : cmake --build build --config Release
52
- - name : Run tests with CTest
54
+ - name : Run tests with SSL
53
55
run : ctest --output-on-failure --test-dir build -C Release
56
+
57
+ - name : Configure CMake without SSL
58
+ run : cmake -B build-no-ssl -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake -DHTTPLIB_TEST=ON -DHTTPLIB_REQUIRE_OPENSSL=ON -DHTTPLIB_REQUIRE_ZLIB=ON -DHTTPLIB_REQUIRE_BROTLI=ON
59
+ - name : Build without SSL
60
+ run : cmake --build build-no-ssl --config Release
61
+ - name : Run tests without SSL
62
+ run : ctest --output-on-failure --test-dir build-no-ssl -C Release
54
63
env :
55
64
VCPKG_ROOT : " C:/vcpkg"
56
65
VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
0 commit comments