Skip to content

Update prepare.yml

Update prepare.yml #9

Workflow file for this run

name: Build and Checks
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev libunwind-dev
( git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig)
( git clone --depth 1 https://github.com/CESNET/nemea-modules /tmp/nemea-modules; cd /tmp/nemea-modules; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; )
- name: autoreconf
run: autoreconf -i
- name: configure
run: ./configure --with-raw --with-pcap --with-nemea --with-gtest
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
- name: configure with debug
run: ./configure --with-raw --with-pcap --with-nemea --with-gtest --enable-debug CXXFLAGS=-coverage CFLAGS=-coverage LDFLAGS=-lgcov
- name: rebuild and check
run: make clean; make check
- uses: codecov/codecov-action@v3
with:
flags: tests # optional
name: ipfixprobe # optional
fail_ci_if_error: true # optional (default = false)
verbose: true
gcov: true