feat(backend/cgroup-skb): Experimental support for displaying thread ID and name in cgroup-skb output #343
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: 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@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@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 |