mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
[build] general actions improvements
This commit is contained in:
parent
5d63be60dc
commit
f096824034
39
.github/actions/muslbuilder/Dockerfile
vendored
39
.github/actions/muslbuilder/Dockerfile
vendored
@ -79,25 +79,20 @@ xterm-256color\
|
||||
"
|
||||
|
||||
RUN cd /extract && for pkg in /*.tar.gz; do tar xvfz "$pkg"; done
|
||||
RUN cd /extract/make-4.2.1 && ./configure --prefix=/fake.root && make && make install
|
||||
RUN cd /extract/readline-* && ./configure --prefix=/fake.root && make && make install
|
||||
RUN cd /extract/bzip2-1.0.8 && make install PREFIX=/fake.root
|
||||
RUN cd /extract/sqlite-* && \
|
||||
./configure --disable-editline --prefix=/fake.root \
|
||||
CFLAGS="${SQLITE_CFLAGS}" \
|
||||
&& \
|
||||
make && make install
|
||||
RUN cd /extract/make-4.2.1 && ./configure --prefix=/fake.root && make -j2 && make install && make clean
|
||||
RUN cd /extract/readline-* && ./configure --prefix=/fake.root && make -j2 && make install && make clean
|
||||
RUN cd /extract/bzip2-1.0.8 && make install PREFIX=/fake.root && make clean
|
||||
|
||||
RUN cd /extract/sqlite-* && \
|
||||
./configure --disable-editline --prefix=/fake.root \
|
||||
CFLAGS="${SQLITE_CFLAGS}" \
|
||||
&& \
|
||||
make && make install
|
||||
make -j2 && make install && make clean
|
||||
|
||||
RUN cd /extract/openssl-* && \
|
||||
./config --prefix=/fake.root -fPIC && \
|
||||
make && \
|
||||
make install
|
||||
make -j2 && \
|
||||
make install && make clean
|
||||
|
||||
RUN cd /extract/ncurses-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
@ -109,15 +104,15 @@ RUN cd /extract/ncurses-* && \
|
||||
--enable-termcap \
|
||||
--with-fallbacks=$NCURSES_FALLBACKS \
|
||||
&& \
|
||||
make && make install
|
||||
make -j2 && make install && make clean
|
||||
|
||||
RUN cd /extract/pcre2-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
--enable-jit \
|
||||
&& \
|
||||
make && make install
|
||||
make -j2 && make install && make clean
|
||||
|
||||
RUN cd /extract/zlib-* && ./configure --prefix=/fake.root && make && make install
|
||||
RUN cd /extract/zlib-* && ./configure --prefix=/fake.root && make -j2 && make install && make clean
|
||||
|
||||
RUN cd /extract/libssh2-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
@ -125,8 +120,8 @@ RUN cd /extract/libssh2-* && \
|
||||
--with-libz-prefix=/fake.root \
|
||||
"CPPFLAGS=-I/fake.root/include" \
|
||||
"LDFLAGS=-ldl -L/fake.root/lib" && \
|
||||
make && \
|
||||
make install
|
||||
make -j2 && \
|
||||
make install && make clean
|
||||
|
||||
RUN cd /extract/curl-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
@ -134,8 +129,8 @@ RUN cd /extract/curl-* && \
|
||||
--with-ssl=/fake.root \
|
||||
--with-zlib=/fake.root \
|
||||
"LDFLAGS=-ldl" && \
|
||||
make && \
|
||||
make install
|
||||
make -j2 && \
|
||||
make install && make clean
|
||||
|
||||
RUN cd /extract/xz-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
@ -143,8 +138,8 @@ RUN cd /extract/xz-* && \
|
||||
"LDFLAGS=-L/fake.root/lib" \
|
||||
"CPPFLAGS=-I/fake.root/include" \
|
||||
&& \
|
||||
make && \
|
||||
make install
|
||||
make -j2 && \
|
||||
make install && make clean
|
||||
|
||||
RUN cd /extract/libarchive-* && \
|
||||
./configure --prefix=/fake.root \
|
||||
@ -152,8 +147,8 @@ RUN cd /extract/libarchive-* && \
|
||||
"LDFLAGS=-L/fake.root/lib" \
|
||||
"CPPFLAGS=-I/fake.root/include" \
|
||||
&& \
|
||||
make && \
|
||||
make install
|
||||
make -j2 && \
|
||||
make install && make clean
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
2
.github/actions/muslbuilder/entrypoint.sh
vendored
2
.github/actions/muslbuilder/entrypoint.sh
vendored
@ -15,4 +15,4 @@ cd lbuild
|
||||
LIBS="-L/fake.root/lib -lexecinfo -lssh2 -llzma -lssl -lcrypto -lz" \
|
||||
--enable-static \
|
||||
PATH="/fake.root/bin:${PATH}"
|
||||
make -j4
|
||||
make -j2
|
||||
|
12
.github/workflows/bins.yml
vendored
12
.github/workflows/bins.yml
vendored
@ -6,6 +6,8 @@ on:
|
||||
- master
|
||||
tags:
|
||||
- '*'
|
||||
paths-ignore:
|
||||
- docs
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -13,6 +15,14 @@ jobs:
|
||||
container:
|
||||
image: tstack/lnav-build:1
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: make
|
||||
run: /entrypoint.sh
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
# Artifact name
|
||||
name: lnav-linux-musl-64bit.zip
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: src/lnav
|
||||
|
2
.github/workflows/c-cpp.yml
vendored
2
.github/workflows/c-cpp.yml
vendored
@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
tags: ['*']
|
||||
paths-ignore:
|
||||
- docs
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
# '|/path/to/this/file' in lnav to execute this file and
|
||||
# restore the state of the session.
|
||||
|
||||
;SELECT raise_error('This session export was made with a newer version of lnav, please upgrade to ' || '0.11.1' || ' or later')
|
||||
WHERE lnav_version() < '0.11.1' COLLATE naturalcase
|
||||
;SELECT raise_error('This session export was made with a newer version of lnav, please upgrade to ' || '0.11.2' || ' or later')
|
||||
WHERE lnav_version() < '0.11.2' COLLATE naturalcase
|
||||
|
||||
# The files loaded into the session were:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user