diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2cde05a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +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-22.04] + wireshark_version: [wireshark-4.2.5] + include: + # Ubuntu 22.04 Wireshark version + - os: ubuntu-22.04 + wireshark_version: wireshark-3.6.2 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies (Ubuntu) + if: matrix.os == 'ubuntu-22.04' + run: sudo apt update && sudo apt install -y git cmake ninja-build + + - name: Clone Wireshark + run: git clone --depth 1 --branch ${{ matrix.wireshark_version }} https://github.com/wireshark/wireshark