Skip to content

11 ci update

11 ci update #21

Workflow file for this run

name: Wirego plugin build on macos
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
macos:
name: Build
runs-on: macos-latest
strategy:
matrix:
wireshark_version: [3.6, 4.0, 4.2]
steps:
- name: Install deps
run: brew install c-ares glib libgcrypt pcre2 speexdsp
- 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: Set output folder
run:
VERSION=${{ matrix.wireshark_version }}
OUTPUT_PATH="${VERSION//./-}"
- name: Export plugin
uses: actions/upload-artifact@v4
with:
name: WiregoPlugin-macOS-for-Wireshark-${{ matrix.wireshark_version }}
path: ${{ github.workspace }}/build/run/Wireshark.app/Contents/PlugIns/wireshark/$OUTPUT_PATH/epan/wirego.so