-
Notifications
You must be signed in to change notification settings - Fork 59
155 lines (153 loc) · 6.24 KB
/
ci-ubuntu.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: ci-ubuntu
on: [pull_request, workflow_dispatch]
jobs:
ci-ubuntu-20-04-gplusplus:
name: ci-ubuntu-20.04-g++-${{ matrix.gplusplus_version }}-networking-${{ matrix.libcoro_feature_networking.enabled }}-tls-${{ matrix.libcoro_feature_networking.tls }}
runs-on: ubuntu-latest
strategy:
matrix:
gplusplus_version: [10]
cxx_standard: [20]
libcoro_feature_networking: [ {enabled: ON, tls: ON}, {enabled: ON, tls: OFF}, {enabled: OFF, tls: OFF} ]
libcoro_build_shared_libs: [OFF, ON]
container:
image: ubuntu:20.04
env:
TZ: America/New_York
DEBIAN_FRONTEND: noninteractive
steps:
- name: Install Dependencies
run: |
apt-get update
apt-get -y upgrade
apt install -y build-essential software-properties-common
add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get install -y \
cmake \
git \
ninja-build \
g++-${{ matrix.gplusplus_version }} \
libssl-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-${{ matrix.gplusplus_version }} \
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gplusplus_version }} \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
-DLIBCORO_BUILD_SHARED_LIBS=${{ matrix.libcoro_build_shared_libs }} \
..
ninja
- name: Test
run: |
cd Release
ctest -VV
ci-ubuntu-22-04-gplusplus:
name: ci-ubuntu-22.04-g++
runs-on: ubuntu-latest
strategy:
matrix:
gplusplus_version: [11, 12, 13]
cxx_standard: [20, 23]
libcoro_feature_networking: [ {enabled: ON, tls: ON}]
container:
image: ubuntu:22.04
env:
TZ: America/New_York
DEBIAN_FRONTEND: noninteractive
steps:
- name: Install Dependencies
run: |
apt-get update
apt-get -y upgrade
apt install -y build-essential software-properties-common
add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get install -y \
cmake \
git \
ninja-build \
g++-${{ matrix.gplusplus_version }} \
libssl-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-${{ matrix.gplusplus_version }} \
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gplusplus_version }} \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
..
ninja
- name: Test
run: |
cd Release
ctest -VV
ci-ubuntu-22-04-clang:
name: ci-ubuntu-22.04-clang
runs-on: ubuntu-latest
strategy:
matrix:
clang_version: [16, 17]
cxx_standard: [20, 23]
libcoro_feature_networking: [ {enabled: ON, tls: ON}]
container:
image: ubuntu:22.04
env:
TZ: America/New_York
DEBIAN_FRONTEND: noninteractive
steps:
- name: Install Dependencies
run: |
apt-get update
apt-get -y upgrade
apt install -y build-essential software-properties-common
apt-get install -y \
wget \
cmake \
git \
ninja-build \
libssl-dev
- name: install-clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh ${{ matrix.clang_version }}
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_COMPILER=clang++-${{ matrix.clang_version }} \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
..
cmake --build . --config Release
- name: Test
run: |
cd Release
ctest --build-config Release -VV