update python wrapper #135
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 | |
options: --privileged | |
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 python-base python3-dev swig python-devel \ | |
python-module-distribute swig iputils | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ vars.GITHUB_REF_NAME }} | |
- 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 | |
echo "%_topdir %homedir/RPM" >> ~/.rpmmacros | |
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 |