diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..57c1021 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,33 @@ +name: C/C++ CI + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get -y install git wget build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip python3-setuptools libxml2-dev libxml2 libpcap0.8-dev libpcap0.8 libidn2-0-dev + ( cd /tmp; wget -qO - http://libnf.net/packages/libnf-1.25.tar.gz | tar -xzf - && cd libnf-1.25 && ./configure -q && sudo make -j3 install; ) + - name: init repository + run: ( git submodule init; git submodule update --recursive; cd modules; git submodule init; git submodule update --recursive; ) + - name: autoreconf + run: autoreconf -i + - name: configure + run: ./configure --enable-repobuild --prefix=/usr --bindir=/usr/bin/nemea/ + - name: make + run: make -j10; sudo make install; sudo ldconfig + - name: Install python components + run: ( cd nemea-framework/pytrap; sudo python3 setup.py install; cd ../pycommon; sudo python3 setup.py install; ) + - name: make check + run: make check || find -name '*.sh.log' -exec cat {} + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2890fa3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: c -compiler: - - gcc -os: - - linux - -branches: - only: - - master - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-multilib - - gcc - - g++ - - autoconf - - pkg-config - - make - - automake - - libxml2-dev - - libxml2 - - libpcap0.8-dev - - libpcap0.8 - - libidn2-0-dev - -before_install: - - ( wget -qO - http://libnf.net/packages/libnf-1.25.tar.gz | tar -xzf - && cd libnf-1.25 && ./configure -q && sudo make -j3 install; ) - -script: - - git submodule init; git submodule update - - ./bootstrap.sh && ./configure --enable-repobuild && make clean && make -j5 - diff --git a/detectors b/detectors index f0c539f..8da9197 160000 --- a/detectors +++ b/detectors @@ -1 +1 @@ -Subproject commit f0c539f31728c354b5c30c16cbb456e290685540 +Subproject commit 8da919746d3a1b9c993996007c13272d960ade6b diff --git a/modules b/modules index cf5b717..c087d9a 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit cf5b717a8aa587d8b45c2853d67feecce2a459bc +Subproject commit c087d9a63f8feb0023e9f6400400450d2474f725 diff --git a/nemea-framework b/nemea-framework index 6a47066..34219c9 160000 --- a/nemea-framework +++ b/nemea-framework @@ -1 +1 @@ -Subproject commit 6a470665d6db82a47db72dd5f0decf5a9a949b08 +Subproject commit 34219c9a0db3dbab1d8e4de072a2d641f160002b diff --git a/nemea-supervisor b/nemea-supervisor index 95b8a65..76ef020 160000 --- a/nemea-supervisor +++ b/nemea-supervisor @@ -1 +1 @@ -Subproject commit 95b8a653a6244dd148734baf30ba1897731d06fc +Subproject commit 76ef02097724974bb3630f6c6ae0562696306ef3