Added tcpdump x86_64 workflow
This commit is contained in:
parent
d33b2d21ff
commit
33ac2a622a
1 changed files with 39 additions and 0 deletions
39
.github/workflows/build-tcpdump-x86_64.yml
vendored
Normal file
39
.github/workflows/build-tcpdump-x86_64.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: tcpdump x86_64
|
||||||
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build tcpdump x86_64
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: muslcc/x86_64:x86_64-linux-musl
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Build tcpdump
|
||||||
|
run: |
|
||||||
|
cd
|
||||||
|
apk update && apk add flex bison wget make
|
||||||
|
wget https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz
|
||||||
|
tar xzf libpcap-1.9.1.tar.gz
|
||||||
|
cd libpcap-1.9.1/
|
||||||
|
./configure --with-pcap=linux
|
||||||
|
make -j2
|
||||||
|
export LIBPCAP_PATH=$(pwd)
|
||||||
|
cd
|
||||||
|
wget https://www.tcpdump.org/release/tcpdump-4.9.3.tar.gz
|
||||||
|
tar xzf tcpdump-4.9.3.tar.gz
|
||||||
|
cd tcpdump-4.9.3/
|
||||||
|
export CFLAGS="-static -I${LIBPCAP_PATH} -L${LIBPCAP_PATH}"
|
||||||
|
export CPPFLAGS=-static
|
||||||
|
export LDFLAGS=-static
|
||||||
|
./configure
|
||||||
|
make -j2
|
||||||
|
pwd
|
||||||
|
|
||||||
|
- name: List build dir
|
||||||
|
run: ls -la
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: tcpdump-4.9.3
|
||||||
|
path: /github/home/tcpdump-4.9.3/tcpdump
|
Loading…
Reference in a new issue