TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags
[wireshark-sm.git] / .github / workflows / macos-stratoshark.yml
blob03bc912c0f6d0a89e792fec214b2b7cd50bf1d15
1 name: Build Stratoshark macOS
3 on: [push]
5 jobs:
6   macos:
7     name: Build
8     runs-on: macos-latest
9     steps:
10       - name: Checkout
11         uses: actions/checkout@v4
12       - name: Set up Python 3.11
13         uses: actions/setup-python@v5
14         with:
15           python-version: 3.11
16       - name: Setup Go
17         uses: actions/setup-go@v5
18         with:
19           go-version: '1.22.x'
20           check-latest: true
21       - name: Install deps
22         run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps --install-stratoshark
23         env:
24           HOMEBREW_NO_AUTO_UPDATE: 1
25       - name: Install dmgbuild
26         run: pip3 install dmgbuild
27       - name: Mkdir
28         run: mkdir build
29       - name: Cmake
30         working-directory: build
31         run: cmake -GNinja -DBUILD_stratoshark=ON -DBUILD_falcodump=ON -DBUILD_androiddump=OFF -DBUILD_ciscodump=OFF -DBUILD_mmdbresolve=OFF -DBUILD_randpkt=OFF -DBUILD_randpktdump=OFF -DBUILD_sharkd=OFF -DBUILD_sshdump=OFF -DBUILD_tshark=OFF -DBUILD_wifidump=OFF -DBUILD_wireshark=OFF ..
32       - name: Build
33         run: ninja
34         working-directory: build
35       - name: Create falco plugin dir
36         run: mkdir run/Stratoshark.app/Contents/PlugIns/stratoshark/falco
37         working-directory: build
38       - name: Build libcloudtrail
39         shell: bash
40         run: |
41           CLOUDTRAIL_VERSION="0.12.0"
42           curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz"
43           tar xzf plugins-cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz
44           cd plugins-cloudtrail-${CLOUDTRAIL_VERSION?}/plugins/cloudtrail
45           make
46           cp libcloudtrail.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libcloudtrail.so
47       - name: Build libgcpaudit
48         shell: bash
49         run: |
50           GCPAUDIT_VERSION="0.3.2"
51           curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/plugins/gcpaudit/v${GCPAUDIT_VERSION?}.tar.gz"
52           tar xzf plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}.tar.gz
53           cd plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}/plugins/gcpaudit
54           make
55           cp libgcpaudit.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libgcpaudit.so
56       - name: Build dmg
57         run: ninja stratoshark_dmg
58         working-directory: build
59       - name: Upload dmg packages
60         uses: actions/upload-artifact@v4
61         with:
62           name: package
63           path: build/run/*dmg