Reapply "Merge pull request #132 from eddc005/feat-pcap"

This reverts commit 2ac8783eb6.
This commit is contained in:
Haruue
2024-05-08 19:13:49 +08:00
parent 3ec5456e86
commit 8cab86b924
7 changed files with 184 additions and 10 deletions

View File

@@ -23,6 +23,9 @@ jobs:
with:
go-version: 'stable'
- name: Install pcap
run: sudo apt install -y libpcap-dev
- run: go vet ./...
- name: staticcheck
@@ -44,4 +47,7 @@ jobs:
with:
go-version: 'stable'
- name: Install pcap
run: sudo apt install -y libpcap-dev
- run: go test ./...

View File

@@ -24,6 +24,9 @@ jobs:
with:
go-version: "1.22"
- name: Install pcap
run: sudo apt install -y libpcap-dev
- name: Build
env:
GOOS: ${{ matrix.goos }}