Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / .github / workflows / macos-stratoshark.yml
blobcb3a809f5dd008f7d9d250d88beb90d00c5ed9ff
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         with:
13           persist-credentials: false
14       - name: Set up Python 3.11
15         uses: actions/setup-python@v5
16         with:
17           python-version: 3.11
18       - name: Setup Go
19         uses: actions/setup-go@v5
20         with:
21           go-version: '1.22.x'
22           check-latest: true
23       - name: Install deps
24         run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps --install-stratoshark
25         env:
26           HOMEBREW_NO_AUTO_UPDATE: 1
27       - name: Install dmgbuild
28         run: pip3 install dmgbuild
29       - name: Mkdir
30         run: mkdir build
31       - name: Cmake
32         working-directory: build
33         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 ..
34       - name: Build
35         run: ninja
36         working-directory: build
37       - name: Create falco plugin dir
38         run: mkdir run/Stratoshark.app/Contents/PlugIns/stratoshark/falco
39         working-directory: build
40       - name: Build libcloudtrail
41         shell: bash
42         run: |
43           CLOUDTRAIL_VERSION="0.12.0"
44           curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz"
45           tar xzf plugins-cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz
46           cd plugins-cloudtrail-${CLOUDTRAIL_VERSION?}/plugins/cloudtrail
47           make
48           cp libcloudtrail.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libcloudtrail.so
49       - name: Build libgcpaudit
50         shell: bash
51         run: |
52           GCPAUDIT_VERSION="0.3.2"
53           curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/plugins/gcpaudit/v${GCPAUDIT_VERSION?}.tar.gz"
54           tar xzf plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}.tar.gz
55           cd plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}/plugins/gcpaudit
56           make
57           cp libgcpaudit.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libgcpaudit.so
58       - name: Build dmg
59         run: ninja stratoshark_dmg
60         working-directory: build
61       - name: Upload dmg packages
62         uses: actions/upload-artifact@v4
63         with:
64           name: package
65           path: build/run/*dmg