Skip to content

chore(deps): update golang:1.24.5-bookworm docker digest to 81c97ed #589

chore(deps): update golang:1.24.5-bookworm docker digest to 81c97ed

chore(deps): update golang:1.24.5-bookworm docker digest to 81c97ed #589

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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
# renovate: datasource=golang-version depName=golang
go-version: '1.24.5'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # 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
mkdir armv7 && tar zxvf dist/ptcpdump_v0.0.0-next_linux_armv7.tar.gz -C armv7
./amd64/ptcpdump --version
file ./amd64/ptcpdump |grep x86-64 |grep 'statically linked'
file ./arm64/ptcpdump |grep aarch64 |grep 'statically linked'
file ./armv7/ptcpdump |grep 32-bit |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@ea165f8d65b6e75b540449e92b4886f43607fa02 # 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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz
- name: Store Releases
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ptcpdump_v0.0.0-next_linux_armv7.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_armv7.tar.gz
artifact-test:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'ubuntu-24.04-arm']
runs-on: ${{ matrix.os }}
timeout-minutes: 5
needs: release-test
steps:
- name: Retrieve stored artifact (amd64)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
if: ${{ !contains(matrix.os, 'arm') }}
with:
name: ptcpdump_v0.0.0-next_linux_amd64.tar.gz
- name: Retrieve stored artifact (arm64)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
if: ${{ contains(matrix.os, 'arm') }}
with:
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz
- name: untar artifact
run: |
if uname -a |grep x86_64; then
ARCH=amd64
else
ARCH=arm64
fi
tar zxvf ptcpdump_v0.0.0-next_linux_${ARCH}.tar.gz
- name: Test binary
run: |
set -xe
uname -a
./ptcpdump --version
sudo ./ptcpdump -i any -c 2