1 name: Build Stratoshark macOS
11 uses: actions/checkout@v4
12 - name: Set up Python 3.11
13 uses: actions/setup-python@v5
17 uses: actions/setup-go@v5
22 run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps --install-stratoshark
24 HOMEBREW_NO_AUTO_UPDATE: 1
25 - name: Install dmgbuild
26 run: pip3 install dmgbuild
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 ..
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
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
46 cp libcloudtrail.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libcloudtrail.so
47 - name: Build libgcpaudit
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
55 cp libgcpaudit.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libgcpaudit.so
57 run: ninja stratoshark_dmg
58 working-directory: build
59 - name: Upload dmg packages
60 uses: actions/upload-artifact@v4