TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags
[wireshark-sm.git] / .github / workflows / ubuntu.yml
blob948a6c0a2f696224940946468597e2bc3b3f57c0
1 name: Build Ubuntu
3 on: [push]
5 jobs:
6   ubuntu:
7     name: Build & Test
8     runs-on: ubuntu-22.04
9     steps:
10       - name: Checkout
11         uses: actions/checkout@v4
12       - name: Install deps
13         run: sudo tools/debian-setup.sh --install-all python3-pip -y
14       - name: Mkdir
15         run: mkdir build
16       - name: Cmake
17         working-directory: build
18         run: cmake -GNinja ..
19       - name: Build
20         run: ninja
21         working-directory: build
22       - name: Build test-programs
23         run: ninja test-programs
24         working-directory: build
25       - name: Set up Python 3.8
26         uses: actions/setup-python@v5
27         with:
28           python-version: 3.8
29       - name: Install pytest
30         run: pip install pytest pytest-xdist
31       - name: Run tests
32         env:
33           PYTEST_ADDOPTS: --skip-missing-programs=rawshark
34         run: pytest
35         working-directory: build
36       - name: Build debian pkg
37         run: |
38           ln --symbolic --no-dereference --force packaging/debian
39           # Ignore changed symbols (on development branch).
40           export DPKG_GENSYMBOLS_CHECK_LEVEL=0
41           tools/make-version.py --set-release .
42           export DEB_BUILD_OPTIONS="nocheck parallel=$(( $(getconf _NPROCESSORS_ONLN) + 2 ))"
43           export DH_QUIET=1
44           export MAKEFLAGS=--silent
45           dpkg-buildpackage -b -us -uc -jauto
46       - name: Move deb packages
47         run: |
48           mkdir deb
49           mv ../*.deb deb
50       - name: Upload deb packages
51         uses: actions/upload-artifact@v4
52         with:
53           name: packages
54           path: deb