commandline: use g_get_prgname() in error messages. #192
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |