-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (52 loc) · 1.64 KB
/
macos.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
# GitHub Action workflows to build and test the plug-in on MacOS
#
# Adapted from Wireshark's repository https://gitlab.com/wireshark/wireshark/-/tree/master/.github/workflows
name: Build MacOS plug-in
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
env:
WIRESHARK_BRANCH: release-4.2
WIRESHARK_QT_VERSION: 5.15.3
jobs:
intree:
name: Build in-tree plugin
runs-on: macos-11.0
steps:
- name: Checkout Wireshark
run: |
git init
git remote add -t "${{ env.WIRESHARK_BRANCH }}" -f origin https://gitlab.com/wireshark/wireshark.git
git checkout ${{ env.WIRESHARK_BRANCH }}
- name: Checkout plug-in
uses: actions/checkout@v3
with:
path: plugins/epan/v2g
- name: Apply patch
run: |
git apply plugins/epan/v2g/extern/wireshark-${{ env.WIRESHARK_BRANCH }}.patch
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install brew deps
run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Build in-tree
run: |
mkdir build
cd build
cmake -GNinja ..
ninja
ninja wireshark_dmg
- name: Upload MacOS artifacts
uses: actions/upload-artifact@v3
with:
name: macos-packages
path: build/run/*dmg