-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (70 loc) · 1.93 KB
/
wireshark-plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Wireshark Plugin
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
pull_request: {} # any target
jobs:
build:
runs-on: ubuntu-22.04
env:
CC: ccache gcc
CXX: ccache g++
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1
steps:
- name: Retrieve cache
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ubuntu-ccache-${{ github.ref_name }}
restore-keys: |
ubuntu-ccache-
- uses: actions/checkout@v3
- name: wireshark
run: |
git clone https://gitlab.com/wireshark/wireshark.git
cd wireshark
git checkout master
sudo ./tools/debian-setup.sh ${COMMON_APT_GET_ARGS} --install-optional --install-deb-deps --install-test-deps \
awscli \
build-essential \
ccache \
colorized-logs \
cppcheck \
curl \
doxygen \
fakeroot \
gcc-10 g++-10 \
graphviz \
jq \
lintian \
locales \
python3-pygments \
python3-pytest-xdist \
shellcheck \
sloccount \
zip
# build without the GUI, don't need for testing
cmake -S . -B build -GNinja -DBUILD_wireshark=OFF
cmake --build build
sudo cmake --install build
sudo cmake --install build --component Development
- name: dependencies
run: |
sudo apt-get update && sudo apt-get install git cmake build-essential libgcrypt-dev gnutls-dev libgtest-dev
- name: configure
run: |
cmake -S . -B build -GNinja
- name: build
run: |
cmake --build build/ --target all
sudo cmake --install build
- name: check
run: |
cd build
ctest -V
tshark -G protocols | grep bpsec-cose
tshark -G protocols | grep bpv7.acme