forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (61 loc) · 2.53 KB
/
macos-stratoshark.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
58
59
60
61
62
63
name: Build Stratoshark macOS
on: [push]
jobs:
macos:
name: Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true
- name: Install deps
run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps --install-stratoshark
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Install dmgbuild
run: pip3 install dmgbuild
- name: Mkdir
run: mkdir build
- name: Cmake
working-directory: build
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 ..
- name: Build
run: ninja
working-directory: build
- name: Create falco plugin dir
run: mkdir run/Stratoshark.app/Contents/PlugIns/stratoshark/falco
working-directory: build
- name: Build libcloudtrail
shell: bash
run: |
CLOUDTRAIL_VERSION="0.12.0"
curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz"
tar xzf plugins-cloudtrail-${CLOUDTRAIL_VERSION?}.tar.gz
cd plugins-cloudtrail-${CLOUDTRAIL_VERSION?}/plugins/cloudtrail
make
cp libcloudtrail.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libcloudtrail.so
- name: Build libgcpaudit
shell: bash
run: |
GCPAUDIT_VERSION="0.3.2"
curl -OL --remote-header-name "https://github.com/falcosecurity/plugins/archive/refs/tags/plugins/gcpaudit/v${GCPAUDIT_VERSION?}.tar.gz"
tar xzf plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}.tar.gz
cd plugins-plugins-gcpaudit-v${GCPAUDIT_VERSION?}/plugins/gcpaudit
make
cp libgcpaudit.so ../../../build/run/Stratoshark.app/Contents/PlugIns/stratoshark/falco/libgcpaudit.so
- name: Build dmg
run: ninja stratoshark_dmg
working-directory: build
- name: Upload dmg packages
uses: actions/upload-artifact@v4
with:
name: package
path: build/run/*dmg