-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Install Wireshark headers | ||
runs: | ||
using: 'composite' | ||
steps: | ||
#- name: Configure Wireshark | ||
# run: | | ||
# mkdir wireshark/build | ||
# cmake -B wireshark/build -S wireshark -DENABLE_CCACHE=Yes | ||
# shell: bash | ||
#- name: Build Wireshark | ||
# run: make -C wireshark/build -j$(nproc) | ||
# shell: bash | ||
- name: Install headers | ||
#run: sudo make -C wireshark/build install-headers | ||
run: | | ||
mkdir wireshark/build | ||
sudo cmake -B wireshark/build -S wireshark -DCOMPONENT=Development -P cmake_install.cmake | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: The tag to be released, e.g. v0.1.0 | ||
required: true | ||
pull_request: | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
#wireshark_version: [wireshark-4.2.5] | ||
wireshark_version: [] | ||
include: | ||
# Ubuntu 22.04 Wireshark version | ||
- os: ubuntu-latest | ||
wireshark_version: wireshark-3.6.2 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clone Wireshark | ||
run: git clone --depth 1 --branch ${{ matrix.wireshark_version }} https://github.com/wireshark/wireshark | ||
|
||
- name: Install dependencies (Ubuntu) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo wireshark/tools/debian-setup.sh | ||
|
||
- name: Install Wireshark headers (Unix) | ||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
uses: ./.github/actions/install-wireshark-headers | ||
|
||
- name: Build Traceeshark (Unix) | ||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
run: | | ||
make cmake | ||
make | ||
- name: Create distribution archive (Unix) | ||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
run: make dist |