mirror of
https://github.com/tstack/lnav.git
synced 2026-03-26 18:28:35 +00:00
And various other things: * Do builds with -O3 * Check for null bytes in is_utf8() * Redo scrub_to_utf8() since it was suboptimal * Fix bad line_buffer::lb_compressed_offset value * Only do preloading for line_buffer's used by logfiles. Otherwise, other uses like detect_file_format() will waste time waiting for the preload to finish and clog up the io_looper. * Always do a full_sort if the index is empty. Might be needed if there is a logfile that has a new order, but we skipped the previous iteration because we passed the deadline. * Increase the file name panel width so we can see file size.
25 lines
607 B
Bash
Executable File
25 lines
607 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -Eeuxo pipefail
|
|
|
|
if [ -z ${GITHUB_WORKSPACE:-} ]; then
|
|
git clone --depth 1 https://github.com/tstack/lnav.git
|
|
cd lnav
|
|
else
|
|
cd ${GITHUB_WORKSPACE}
|
|
fi
|
|
|
|
./autogen.sh
|
|
mkdir lbuild
|
|
cd lbuild
|
|
../configure \
|
|
--with-libarchive=/fake.root \
|
|
CFLAGS='-static -g1 -gz=zlib -no-pie -O3' \
|
|
CXXFLAGS='-static -g1 -gz=zlib -U__unused -no-pie -O3' \
|
|
LDFLAGS="-L/fake.root/lib" \
|
|
CPPFLAGS="-I/fake.root/include -I/fake.root/include/ncursesw" \
|
|
LIBS="-L/fake.root/lib -lssh2 -llzma -lssl -lcrypto -lz -llz4" \
|
|
--enable-static \
|
|
PATH="/fake.root/bin:${PATH}"
|
|
make -j2
|