From dbcbaa583c4c95ba211bf51127083670a07b430c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 25 Jan 2020 08:33:34 +0530 Subject: Test static packaging --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index 48b02c2..fe60329 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,6 +72,18 @@ jobs: # Move source pack to 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: name: "publish to GitHub" command: | -- cgit v1.2.3-70-g09d2