summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /.github/workflows/ubuntu.yml
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
new file mode 100644
index 0000000..f535339
--- /dev/null
+++ b/.github/workflows/ubuntu.yml
@@ -0,0 +1,54 @@
+name: Build Ubuntu
+
+on: [push]
+
+jobs:
+ ubuntu:
+ name: Build & Test
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Install deps
+ run: sudo tools/debian-setup.sh --install-all python3-pip -y
+ - 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@v4
+ with:
+ python-version: 3.8
+ - name: Install pytest
+ run: pip install pytest pytest-xdist
+ - name: Run tests
+ env:
+ PYTEST_ADDOPTS: --skip-missing-programs=rawshark
+ run: pytest
+ working-directory: build
+ - name: Build debian pkg
+ run: |
+ ln --symbolic --no-dereference --force packaging/debian
+ # Ignore changed symbols (on development branch).
+ export DPKG_GENSYMBOLS_CHECK_LEVEL=0
+ tools/make-version.py --set-release .
+ export DEB_BUILD_OPTIONS="nocheck parallel=$(( $(getconf _NPROCESSORS_ONLN) + 2 ))"
+ export DH_QUIET=1
+ export MAKEFLAGS=--silent
+ dpkg-buildpackage -b -us -uc -jauto
+ - name: Move deb packages
+ run: |
+ mkdir deb
+ mv ../*.deb deb
+ - name: Upload deb packages
+ uses: actions/upload-artifact@v3
+ with:
+ name: packages
+ path: deb