Skip to content

13 examples (#16)

13 examples (#16) #47

Workflow file for this run

name: Wirego plugin build on Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
linux:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
wireshark_version: ["4.0", "4.2"]
steps:
- name: Install wireshark deps on linux
run: sudo apt-get install -y git build-essential cmake libgcrypt-dev libpcap-dev libgcrypt20-dev libglib2.0-dev flex bison libpcre2-dev libnghttp2-dev libc-ares-dev libspeexdsp-dev
- name: Clone Wirego plugin
uses: actions/checkout@v3
with:
path: ${{ github.workspace }}/wirego
- name: Clone Wireshark
uses: actions/checkout@v3
with:
repository: wireshark/wireshark
path: ${{ github.workspace }}/wireshark
ref: release-${{ matrix.wireshark_version }}
- name: Create plugin link
run: ln -s ${{ github.workspace }}/wirego/wirego_plugin ${{ github.workspace }}/wireshark/plugins/epan/wirego
- name: Create output dir
run: mkdir ${{ github.workspace }}/build
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ github.workspace }}/build
-DBUILD_wireshark=OFF
-DCUSTOM_PLUGIN_SRC_DIR=${{ github.workspace }}/wireshark/plugins/epan/wirego
-S ${{ github.workspace }}/wireshark
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ github.workspace }}/build --config Release -- wirego
- name: Debug ls
run: ls -R ${{ github.workspace }}/build
- name: Export plugin
uses: actions/upload-artifact@v4
with:
name: WiregoPlugin-Ubuntu-for-Wireshark-${{ matrix.wireshark_version }}
path: ${{ github.workspace }}/build/run/plugins/${{ matrix.wireshark_version }}/epan/wirego.so