2020-02-15 22:01:54 +00:00
|
|
|
name: Build Ubuntu
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-03-26 22:02:04 +00:00
|
|
|
ubuntu:
|
2020-02-15 22:01:54 +00:00
|
|
|
name: Build & Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
2020-03-02 13:20:32 +00:00
|
|
|
run: sudo tools/debian-setup.sh --install-optional --install-test-deps --install-deb-deps python3-pip -y
|
2020-02-15 22:01:54 +00:00
|
|
|
- name: Mkdir
|
|
|
|
run: mkdir build
|
|
|
|
- name: Cmake
|
|
|
|
working-directory: build
|
|
|
|
run: cmake -GNinja ..
|
|
|
|
- name: Build
|
|
|
|
run: ninja
|
|
|
|
working-directory: build
|
|
|
|
- name: Build test-programs
|
|
|
|
run: ninja test-programs
|
|
|
|
working-directory: build
|
|
|
|
- name: Set up Python 3.8
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install pytest
|
|
|
|
run: pip install pytest pytest-xdist
|
|
|
|
- name: Run tests
|
|
|
|
env:
|
|
|
|
PYTEST_ADDOPTS: --skip-missing-programs=rawshark
|
2021-11-20 19:39:12 +00:00
|
|
|
run: pytest
|
2020-02-15 22:01:54 +00:00
|
|
|
working-directory: build
|
2020-03-02 13:20:32 +00:00
|
|
|
- name: Build debian pkg
|
2022-02-24 08:12:30 +00:00
|
|
|
run: |
|
|
|
|
ln --symbolic --no-dereference --force packaging/debian
|
|
|
|
dpkg-buildpackage -b -us -uc -jauto
|
2020-03-02 13:20:32 +00:00
|
|
|
- name: Move deb packages
|
|
|
|
run: |
|
|
|
|
mkdir deb
|
|
|
|
mv ../*.deb deb
|
|
|
|
- name: Upload deb packages
|
2021-12-26 22:53:59 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-03-02 13:20:32 +00:00
|
|
|
with:
|
|
|
|
name: packages
|
|
|
|
path: deb
|