Use GCC 10 #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |