Commit 5a1ecc3 1 parent 85b5cdd commit 5a1ecc3 Copy full SHA for 5a1ecc3
File tree 2 files changed +21
-4
lines changed
2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,30 @@ jobs:
47
47
(github.event_name == 'pull_request' &&
48
48
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) ||
49
49
(github.event_name == 'workflow_dispatch' && github.event.inputs.test_linux == 'true')
50
+ strategy :
51
+ matrix :
52
+ config :
53
+ - arch_flags : -m32
54
+ arch_suffix : :i386
55
+ name : (32-bit)
56
+ - arch_flags :
57
+ arch_suffix :
58
+ name : (64-bit)
59
+ name : ubuntu ${{ matrix.config.name }}
50
60
steps :
51
61
- name : checkout
52
62
uses : actions/checkout@v4
53
63
- name : install libraries
54
- run : sudo apt-get update && sudo apt-get install -y libbrotli-dev libcurl4-openssl-dev
64
+ run : |
65
+ sudo dpkg --add-architecture i386
66
+ sudo apt-get update
67
+ sudo apt-get install -y libc6-dev${{ matrix.config.arch_suffix }} libstdc++-13-dev${{ matrix.config.arch_suffix }} \
68
+ libssl-dev${{ matrix.config.arch_suffix }} libcurl4-openssl-dev${{ matrix.config.arch_suffix }} \
69
+ zlib1g-dev${{ matrix.config.arch_suffix }} libbrotli-dev${{ matrix.config.arch_suffix }}
55
70
- name : build and run tests
56
- run : cd test && make
71
+ run : cd test && make EXTRA_CXXFLAGS="${{ matrix.config.arch_flags }}"
57
72
- name : run fuzz test target
58
- run : cd test && make fuzz_test
73
+ run : cd test && make EXTRA_CXXFLAGS="${{ matrix.config.arch_flags }}" fuzz_test
59
74
60
75
macos :
61
76
runs-on : macos-latest
Original file line number Diff line number Diff line change 1
1
CXX = clang++
2
- CXXFLAGS = -g -std=c++11 -I. -Wall -Wextra -Wtype-limits -Wconversion -Wshadow # -fno-exceptions -DCPPHTTPLIB_NO_EXCEPTIONS -fsanitize=address
2
+ CXXFLAGS = -g -std=c++11 -I. -Wall -Wextra -Wtype-limits -Wconversion -Wshadow $( EXTRA_CXXFLAGS ) # -fno-exceptions -DCPPHTTPLIB_NO_EXCEPTIONS -fsanitize=address
3
3
4
4
PREFIX ?= $(shell brew --prefix)
5
5
@@ -41,6 +41,7 @@ proxy : test_proxy
41
41
42
42
test : test.cc include_httplib.cc ../httplib.h Makefile cert.pem
43
43
$(CXX ) -o $@ -I.. $(CXXFLAGS ) test.cc include_httplib.cc $(TEST_ARGS )
44
+ @file $@
44
45
45
46
# Note: The intention of test_split is to verify that it works to compile and
46
47
# link the split httplib.h, so there is normally no need to execute it.
@@ -83,6 +84,7 @@ fuzz_test: server_fuzzer
83
84
# Fuzz target, so that you can choose which $(LIB_FUZZING_ENGINE) to use.
84
85
server_fuzzer : fuzzing/server_fuzzer.cc ../httplib.h standalone_fuzz_target_runner.o
85
86
$(CXX ) -o $@ -I.. $(CXXFLAGS ) $< $(OPENSSL_SUPPORT ) $(ZLIB_SUPPORT ) $(BROTLI_SUPPORT ) $(LIB_FUZZING_ENGINE ) -pthread
87
+ @file $@
86
88
87
89
# Standalone fuzz runner, which just reads inputs from fuzzing/corpus/ dir and
88
90
# feeds it to server_fuzzer.
You can’t perform that action at this time.
0 commit comments