-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.18 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches:
- master
- releases/*
pull_request:
branches:
- master
jobs:
ubuntu:
name: Ubuntu native build (x86-64)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: >-
sudo apt-get install -y --no-install-recommends autoconf automake
libtool g++-10 gettext make libpcre2-dev libssl-dev zlib1g-dev
libmysqlclient-dev libmongoc-dev
- name: Build and install asteria
run: |
git submodule update --init asteria
pushd asteria
autoreconf -ifv
./configure CXX='g++-10' --disable-repl
make -j$(nproc)
rm -f *.deb
./makedeb.sh
sudo dpkg -i asteria_*.deb
popd
- name: Build and install http-parser
run: |
git submodule update --init http-parser
pushd http-parser
autoreconf -ifv
./configure CXX='g++-10'
make -j$(nproc)
rm -f *.deb
./makedeb.sh
sudo dpkg -i libhttp-parser_*.deb
popd
- name: Run tests
run: CXX='g++-10' ./ci/build.sh