-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (66 loc) · 1.62 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: build
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Init ASIO
run: |
git clone https://github.com/chriskohlhoff/asio.git -b asio-1-24-0 --depth=1
- name: CMake Build
env:
ASIO_PATH: asio/asio/include
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DASIO_NET_DISABLE_ON_DATA_PRINT=ON -DASIO_NET_ENABLE_SSL=ON ..
make -j2
- name: Test TCP
run: |
cd build
./asio_net_test_tcp
- name: Test TCP (big data)
run: |
cd build
./asio_net_test_tcp_bigdata
- name: Test TCP (reconnect)
run: |
cd build
./asio_net_test_tcp_reconnect
- name: Test UDP
run: |
cd build
./asio_net_test_udp
- name: Test RPC
run: |
cd build
./asio_net_test_rpc
- name: Test RPC (reconnect)
run: |
cd build
./asio_net_test_rpc_reconnect
- name: Test RPC (ssl)
run: |
cd build
#./asio_net_test_rpc_ssl
echo "skip for avoid wait too long"
- name: Test Domain TCP
run: |
cd build
./asio_net_test_domain_tcp
- name: Test Domain UDP
run: |
cd build
./asio_net_test_domain_udp
- name: Test Domain RPC
run: |
cd build
./asio_net_test_domain_rpc