Skip to content

chore(bpf): Use BPF ringbuf instead of perfbuf when kernel support is available #374

chore(bpf): Use BPF ringbuf instead of perfbuf when kernel support is available

chore(bpf): Use BPF ringbuf instead of perfbuf when kernel support is available #374

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@3041bf56c941b39c61721a86cd11f3bb1338122a # 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@9ed2f89a662bf1735a48bc8557fd212fa902bebf # 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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # 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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
with:
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz