Skip to content

Commit 73945d8

Browse files
committed
chore: Update build workflow to build and publish LSOF binary to a release
1 parent 98e8997 commit 73945d8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ jobs:
1313
- name: Set up dependencies
1414
run: |
1515
sudo apt-get update
16-
sudo apt-get install -y gcc make libc6-dev autotools-dev autoconf automake libtool bison flex
16+
sudo apt-get install -y gcc make libc6-dev libtirpc-dev autotools-dev autoconf automake libtool bison flex
1717
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020

2121
- name: Compile LSOF
2222
run: |
23-
./Configure linux
24-
make
25-
make install
23+
./Configure -n linux
24+
make CC='gcc -static' LDFLAGS='-static -static-libgcc'
2625
echo "------ :: LSOF binary is compiled and installed :: ------"
27-
lsof -v
26+
./lsof -v
2827
2928
- name: Gets latest created release info
3029
id: latest-release

0 commit comments

Comments
 (0)