2023-06-12 04:32:01 +00:00
|
|
|
#!/bin/sh
|
2023-06-12 04:25:24 +00:00
|
|
|
|
2023-06-12 04:29:34 +00:00
|
|
|
set -Eeuxo pipefail
|
2023-06-12 04:40:27 +00:00
|
|
|
|
2023-07-07 14:52:41 +00:00
|
|
|
if [ -z ${GITHUB_WORKSPACE:-} ]; then
|
2023-08-03 08:00:37 +00:00
|
|
|
git clone --depth 1 https://github.com/tstack/lnav.git
|
|
|
|
cd lnav
|
2023-07-07 14:52:41 +00:00
|
|
|
else
|
|
|
|
cd ${GITHUB_WORKSPACE}
|
|
|
|
fi
|
|
|
|
|
2023-06-12 05:53:09 +00:00
|
|
|
./autogen.sh
|
2023-06-12 05:22:01 +00:00
|
|
|
mkdir lbuild
|
|
|
|
cd lbuild
|
|
|
|
../configure \
|
|
|
|
--with-libarchive=/fake.root \
|
|
|
|
CFLAGS='-static -g1 -gz=zlib -no-pie -O2' \
|
|
|
|
CXXFLAGS='-static -g1 -gz=zlib -U__unused -no-pie -O2' \
|
|
|
|
LDFLAGS="-L/fake.root/lib" \
|
|
|
|
CPPFLAGS="-I/fake.root/include" \
|
2023-07-12 23:07:19 +00:00
|
|
|
LIBS="-L/fake.root/lib -lssh2 -llzma -lssl -lcrypto -lz -llz4" \
|
2023-06-12 05:22:01 +00:00
|
|
|
--enable-static \
|
|
|
|
PATH="/fake.root/bin:${PATH}"
|
2023-06-12 15:30:49 +00:00
|
|
|
make -j2
|