add new flag -D
: Print the list of the network interfaces available on the system
#28
Workflow file for this run
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 | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- name: Set up Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 | |
with: | |
go-version: 1.21 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5 | |
with: | |
distribution: goreleaser | |
version: latest | |
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: Store Releases | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 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@65462800fd760344b1a7b4382951275a0abb4808 # v4 | |
with: | |
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz | |
path: dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz |