File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ jobs:
16
16
image : ubuntu:24.04
17
17
18
18
steps :
19
+ - name : Enable core dumps
20
+ run : ulimit -c unlimited
19
21
- uses : actions/checkout@v3
20
22
- name : Install prerequisites
21
23
run : |
22
24
apt update
23
- apt install -y build-essential g++ make cmake pkg-config git wget curl zip unzip tar
25
+ apt install -y build-essential g++ make cmake pkg-config git wget curl zip unzip tar gdb
24
26
- name : Install vcpkg
25
27
run : |
26
28
git clone https://github.com/microsoft/vcpkg.git /opt/vcpkg
37
39
run : |
38
40
cd /root/libcpp-http-client
39
41
cmake --build build --config Release
40
- - name : Run tests
42
+ - name : Run tests with gdb
41
43
run : |
42
44
cd /root/libcpp-http-client
43
- ./build/test/test
45
+ gdb -ex "run" -ex "bt" -ex "quit" --args ./build/test/test
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(libcpp-http-client)
4
4
5
5
set (CMAKE_CXX_STANDARD 17 )
6
6
set (CMAKE_CXX_STANDARD_REQUIRED ON )
7
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g" )
7
8
8
9
add_library (libcpp-http-client INTERFACE )
9
10
You can’t perform that action at this time.
0 commit comments