mirror of
https://github.com/antos-rde/antos.git
synced 2025-04-05 16:36:48 +02:00
ci: export build file to public release
This commit is contained in:
parent
3df1bb4729
commit
b0e51d5a52
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -106,6 +106,23 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Copy doc') {
|
||||||
|
steps {
|
||||||
|
sh'''
|
||||||
|
DOCDIR=/home/dany/public/antos-release/doc/ make doc
|
||||||
|
SDKDIR=/home/dany/public/antos-release/sdk/ make sdk
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Copy Binaries') {
|
||||||
|
steps {
|
||||||
|
sh'''
|
||||||
|
BINDIR="/home/dany/public/antos-release/binaries/"
|
||||||
|
find ./build/ -name "*.deb" -exec install -Dm 755 "{}" "$BINDIR/deb" \\;
|
||||||
|
find ./build/ -name "*.AppImage" -exec install -Dm 755 "{}" "$BINDIR/appimg" \\;
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
15
Makefile
15
Makefile
@ -11,6 +11,8 @@ RUSTUP_HOME?=/opt/rust
|
|||||||
CARGO_HOME?=/opt/rust/cargo
|
CARGO_HOME?=/opt/rust/cargo
|
||||||
BUILDDIR?=$(ROOT_DIR)/build/
|
BUILDDIR?=$(ROOT_DIR)/build/
|
||||||
DESTDIR?=/
|
DESTDIR?=/
|
||||||
|
DOCDIR?=$(ROOT_DIR)/build/doc/
|
||||||
|
SDKDIR?=$(ROOT_DIR)/build/sdk/
|
||||||
|
|
||||||
ifeq ('$(ARCH)','amd64')
|
ifeq ('$(ARCH)','amd64')
|
||||||
RUST_TARGET?=x86_64-unknown-linux-gnu
|
RUST_TARGET?=x86_64-unknown-linux-gnu
|
||||||
@ -186,5 +188,18 @@ appimg:
|
|||||||
docker:
|
docker:
|
||||||
scripts/mkdocker.sh $(DOCKER_IMAGE):$(DOCKER_TAG)
|
scripts/mkdocker.sh $(DOCKER_IMAGE):$(DOCKER_TAG)
|
||||||
|
|
||||||
|
doc:
|
||||||
|
mkdir -p $(DOCDIR)/$(VERSION)
|
||||||
|
VERSION=$(VERSION) BUILDID=$(BUILDID) DOCDIR=$(DOCDIR)/$(VERSION) make -C antos-frontend doc
|
||||||
|
|
||||||
|
sdk:
|
||||||
|
mkdir -p $(SDKDIR)/$(VERSION)
|
||||||
|
cp antos-frontend/d.ts/* $(SDKDIR)/$(VERSION)
|
||||||
|
-rm $(SDKDIR)/versions.txt
|
||||||
|
@for file in $(SDKDIR)/*; do \
|
||||||
|
echo $$file; \
|
||||||
|
echo $$(basename $$file) >> $(SDKDIR)/versions.txt; \
|
||||||
|
done
|
||||||
|
|
||||||
# --push
|
# --push
|
||||||
.PHONY: antd antos docker
|
.PHONY: antd antos docker
|
Loading…
x
Reference in New Issue
Block a user