Skip to content

chore(bpf): Use fentry probes where kernel support allows #279

chore(bpf): Use fentry probes where kernel support allows

chore(bpf): Use fentry probes where kernel support allows #279

Workflow file for this run

name: release-test
on:
workflow_dispatch:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
permissions:
contents: read
jobs:
release-test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: '1.23.2'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
distribution: goreleaser
version: '~> v2'
args: release --snapshot --clean --skip=publish -p 1
- name: Test binary
run: |
mkdir amd64 && tar zxvf dist/ptcpdump_v0.0.0-next_linux_amd64.tar.gz -C amd64
mkdir arm64 && tar zxvf dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz -C arm64
./amd64/ptcpdump --version
file ./amd64/ptcpdump |grep x86-64 |grep 'statically linked'
file ./arm64/ptcpdump |grep aarch64 |grep 'statically linked'
- name: Run govulncheck for binary
run: |
set -xe
govulncheck -mode=binary -show verbose -scan module ./amd64/ptcpdump
govulncheck -mode=binary -show verbose -scan module ./arm64/ptcpdump
- name: Store Releases
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: ptcpdump_v0.0.0-next_linux_amd64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_amd64.tar.gz
- name: Store Releases
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz