mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Test static packaging
This commit is contained in:
parent
a2288594d1
commit
dbcbaa583c
|
@ -72,6 +72,18 @@ jobs:
|
||||||
# Move source pack to dist
|
# Move source pack to dist
|
||||||
mv ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz dist/
|
mv ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz dist/
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: "generate static package"
|
||||||
|
command: |
|
||||||
|
# Compile statically
|
||||||
|
make O_STATIC=1 O_NORL=1 strip
|
||||||
|
# Archive
|
||||||
|
tar -cvf ${CIRCLE_PROJECT_REPONAME}-static-${CIRCLE_TAG}.amd64.tar.gz ${CIRCLE_PROJECT_REPONAME}
|
||||||
|
# Move static package to dist
|
||||||
|
mv tar -cvf ${CIRCLE_PROJECT_REPONAME}-static-${CIRCLE_TAG}.amd64.tar.gz dist/
|
||||||
|
# Remove static binary
|
||||||
|
rm ${CIRCLE_PROJECT_REPONAME}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "publish to GitHub"
|
name: "publish to GitHub"
|
||||||
command: |
|
command: |
|
||||||
|
|
|
@ -16,122 +16,122 @@ packages:
|
||||||
- ncurses
|
- ncurses
|
||||||
- readline
|
- readline
|
||||||
container: "archlinux/base"
|
container: "archlinux/base"
|
||||||
centos7.5:
|
# centos7.5:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkgconfig
|
# - pkgconfig
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
commands:
|
# commands:
|
||||||
pre:
|
# pre:
|
||||||
- yum install epel-release
|
# - yum install epel-release
|
||||||
centos7.6:
|
# centos7.6:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkgconfig
|
# - pkgconfig
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
commands:
|
# commands:
|
||||||
pre:
|
# pre:
|
||||||
- yum install epel-release
|
# - yum install epel-release
|
||||||
centos8.0:
|
# centos8.0:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkgconfig
|
# - pkgconfig
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
commands:
|
# commands:
|
||||||
pre:
|
# pre:
|
||||||
- yum install epel-release
|
# - yum install epel-release
|
||||||
debian9:
|
# debian9:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- libncursesw5-dev
|
# - libncursesw5-dev
|
||||||
- libreadline-dev
|
# - libreadline-dev
|
||||||
deps:
|
# deps:
|
||||||
- libncursesw5
|
# - libncursesw5
|
||||||
- readline-common
|
# - readline-common
|
||||||
debian10:
|
# debian10:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- libncursesw5-dev
|
# - libncursesw5-dev
|
||||||
- libreadline-dev
|
# - libreadline-dev
|
||||||
deps:
|
# deps:
|
||||||
- libncursesw5
|
# - libncursesw5
|
||||||
- readline-common
|
# - readline-common
|
||||||
fedora29:
|
# fedora29:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
fedora30:
|
# fedora30:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
fedora31:
|
# fedora31:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
opensuse15.1:
|
# opensuse15.1:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
deps:
|
# deps:
|
||||||
- libncurses6
|
# - libncurses6
|
||||||
- libreadline7
|
# - libreadline7
|
||||||
ubuntu16.04:
|
# ubuntu16.04:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- libncursesw5-dev
|
# - libncursesw5-dev
|
||||||
- libreadline6-dev
|
# - libreadline6-dev
|
||||||
deps:
|
# deps:
|
||||||
- libncursesw5
|
# - libncursesw5
|
||||||
- libreadline6
|
# - libreadline6
|
||||||
ubuntu18.04:
|
# ubuntu18.04:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- libncursesw5-dev
|
# - libncursesw5-dev
|
||||||
- libreadline-dev
|
# - libreadline-dev
|
||||||
deps:
|
# deps:
|
||||||
- libncursesw5
|
# - libncursesw5
|
||||||
- libreadline7
|
# - libreadline7
|
||||||
|
|
Loading…
Reference in a new issue