(dbserver): cleanup code #122
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: testsuite | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: alt:sisyphus | |
env: | |
CC: ccache gcc | |
CCACHE_DIR: ${{ github.workspace }}/.ccache | |
CXX: ccache g++ | |
USE_CCACHE: 1 | |
steps: | |
- name: install packages | |
run: | | |
apt-get update && apt-get -y install etersoft-build-utils su sudo \ | |
git-core ccache gcc-c++ etersoft-build-utils \ | |
libcomedi-devel libmariadb-devel libpqxx-devel libsqlite3-devel \ | |
libxml2-devel libsigc++2-devel libpoco-devel libev-devel libprotobuf-devel grpc-plugins libgrpc++-devel \ | |
libmosquitto-devel \ | |
libopen62541-devel libopen62541pp-devel \ | |
libclickhouse-cpp-devel \ | |
xsltproc python3-dev python-module-distribute swig iputils | |
- name: cache | |
uses: actions/cache@v2 | |
if: always() | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ${{ runner.os }}-ccache | |
restore-keys: | | |
${{ runner.os }}-ccache | |
- uses: actions/checkout@v2 | |
- name: configure | |
run: | | |
export CCACHE_ENABLE=yes | |
export GCC_USE_CCACHE=1 | |
export CXXFLAGS='-pipe -O2 -pedantic -Wall' | |
# due broken comedi | |
export CXXFLAGS="$CXXFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs" | |
autoreconf -fiv | |
./configure --disable-netdata --disable-python | |
- name: make | |
run: | | |
export GCC_USE_CCACHE=1 | |
export ALLOW_ROOT_USER=1 | |
jmake | |
- name: testsuite | |
run: | | |
cd testsuite; | |
make check | |
- name: 'Upload Artifacts' | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: testsuite-artifacts | |
path: testsuite | |
retention-days: 5 |