1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

add dist source tarball generation and bundle it with gitlab static release

This commit is contained in:
Jeff Becker 2020-05-15 10:45:11 -04:00
parent 6ea6a4bd25
commit 3ac2a3defa
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 11 additions and 5 deletions

View file

@ -30,22 +30,22 @@ build:linux_release:
- apt-get update && apt-get install -y apt-transport-https curl
- curl https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add -
- echo 'deb https://apt.kitware.com/ubuntu/ xenial main' >/etc/apt/sources.list.d/kitware.list
- apt-get update && apt-get install -y build-essential ca-certificates cmake curl git libcap-dev pkg-config wget xz-utils
- apt-get update && apt-get install -y build-essential ca-certificates cmake curl git libcap-dev pkg-config wget xz-utils python3-pip
- pip3 install git-archive-all
script:
- make static DOWNLOAD_SODIUM=ON
- make static DOWNLOAD_SODIUM=ON DOWNLOAD_UV=ON
# alternatively: git describe --tag
- LOKINET_VERSION=$(./lokinet-static --version|sed s/lokinet-//)
- echo lokinet-linux-x64-v$LOKINET_VERSION
- mkdir lokinet-linux-x64-v$LOKINET_VERSION
- cp lokinet-bootstrap lokinet-linux-x64-v$LOKINET_VERSION
- cp build/daemon/lokinet lokinet-linux-x64-v$LOKINET_VERSION
- cp build/daemon/lokinetctl lokinet-linux-x64-v$LOKINET_VERSION
- cp docs/linux-setcap-readme.txt lokinet-linux-x64-v$LOKINET_VERSION
- tar cJf lokinet-linux-x64-v$LOKINET_VERSION.tar.xz lokinet-linux-x64-v$LOKINET_VERSION
- echo "lokinet-linux-x64-v$LOKINET_VERSION.tar.xz should be ready"
- make tarball
artifacts:
paths:
- lokinet-linux-x64-v*.tar.xz
- lokinet-*.tar.xz
build:linux_debug:
image: ubuntu:xenial

View file

@ -374,4 +374,10 @@ doc: debug-configure
$(MAKE) -C $(BUILD_ROOT) clean
$(MAKE) -C $(BUILD_ROOT) doc
dist:
OUT='lokinet-$(shell git describe --exact-match --tags $(git log -n1 --pretty='%h') || ( echo -n $(GIT_BRANCH)- && git rev-parse --short HEAD) ).tar.xz' bash -c 'git-archive-all -C $(REPO) --force-submodules $$OUT && gpg --sign --detach $$OUT'
tarball:
OUT='lokinet-$(shell git describe --exact-match --tags $(git log -n1 --pretty='%h') || ( echo -n $(GIT_BRANCH)- && git rev-parse --short HEAD) ).tar.xz' bash -c 'git-archive-all -C $(REPO) --force-submodules $$OUT'
.PHONY: debian-install