Commit 66c1e3e7 authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

[github-actions]: fixed build depends

parent 163194aa
name: C/C++ CI
on:
push:
branches: [ master, github-actions ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install packages
run: |
sudo apt-get install libcomedi-dev libpoco-dev libmysqlclient-dev libomniorb4-dev libev-dev omniidl xsltproc libpqxx3-dev librrd-dev libsigc++-2.0-dev libsqlite3-dev python-dev libmosquittopp-dev
wget https://github.com/catchorg/Catch2/releases/download/v1.11.0/catch.hpp -O include/catch.hpp
- name: configure
run: |
export CXXFLAGS='-pipe -O2 -pedantic -Wall'
# due broken comedi
export CXXFLAGS="$CXXFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs"
autoreconf -fiv
./configure --enable-mysql --enable-sqlite --enable-rrd --enable-io --disable-python --disable-mqtt --disable-pgsql --disable-api --disable-netdata --disable-logdb
- name: make
run: make
- name: simple tests
run: |
cd tests;
make check
......@@ -14,10 +14,10 @@ name: "CodeQL"
on:
push:
branches: [ master, github-actions ]
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ "*" ]
schedule:
- cron: '44 6 * * 4'
......
......@@ -12,20 +12,28 @@ jobs:
container:
image: alt:sisyphus
steps:
- uses: actions/checkout@v2
- name: install packages
run: |
apt-get update && apt-get -y install etersoft-build-utils git-core ccache gcc-c++ etersoft-build-utils catch-devel libcomedi-devel libmariadb-devel libpqxx-devel librrd-devel python-devel python-module-distribute
apt-get update && apt-get -y install etersoft-build-utils su sudo \
git-core ccache gcc-c++ etersoft-build-utils catch-devel \
libcomedi-devel libmariadb-devel libpqxx-devel librrd-devel libsqlite3-devel \
libxml2-devel libsigc++2-devel libpoco-devel libev-devel libomniORB-devel libmosquitto-devel \
xsltproc python-devel python-module-distribute
- name: prepare builder
run: |
useradd builder
su - builder
- uses: actions/checkout@v2
- name: configure
run: |
export CXXFLAGS='-pipe -O2 -pedantic -Wall'
# due broken comedi
export CXXFLAGS="$CXXFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs"
autoreconf -fiv
./configure --disable-mysql --enable-sqlite --enable-rrd --enable-io --disable-python --disable-mqtt --disable-pgsql --disable-netdata --disable-logdb
./configure --disable-netdata
- name: make
run: jmake
- name: simple tests
run: make
- name: testsuite
run: |
cd testsuite;
make check
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment