Skip to content

Commit 3e406ef

Browse files
committed
Update test.yaml
1 parent fbb86ba commit 3e406ef

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/test.yaml

+16-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: install libraries
1212
run: sudo apt-get update && sudo apt-get install -y libbrotli-dev libcurl4-openssl-dev
1313
- name: build and run tests
14-
run: cd test && make -j4
14+
run: cd test && make
1515
- name: run fuzz test target
1616
run: cd test && make fuzz_test
1717

@@ -21,8 +21,9 @@ jobs:
2121
- name: checkout
2222
uses: actions/checkout@v4
2323
- 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
2627

2728
windows:
2829
runs-on: windows-latest
@@ -39,18 +40,26 @@ jobs:
3940
script: |
4041
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
4142
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
42-
- name: setup msbuild on windows
43+
- name: Setup msbuild on windows
4344
uses: microsoft/setup-msbuild@v2
4445
- name: Install libraries
4546
run: |
4647
vcpkg install gtest curl zlib brotli
4748
choco install openssl
48-
- name: Configure CMake for Release
49+
50+
- name: Configure CMake with SSL
4951
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
5153
run: cmake --build build --config Release
52-
- name: Run tests with CTest
54+
- name: Run tests with SSL
5355
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
5463
env:
5564
VCPKG_ROOT: "C:/vcpkg"
5665
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

0 commit comments

Comments
 (0)