mirror of
https://github.com/antos-rde/antos.git
synced 2025-04-29 20:26:45 +02:00
fix(CI): make taret shall create output directory if not exist
Some checks failed
gitea-sync/antos/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/antos/pipeline/head There was a failure building this commit
This commit is contained in:
parent
9d88e9f1fa
commit
b8a15cf02c
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -1,6 +1,7 @@
|
||||
def build_rust_and_frontend() {
|
||||
sh '''#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
export RUSTUP_HOME=/opt/rust/rustup
|
||||
export CARGO_HOME=/opt/rust/cargo
|
||||
TARGET=
|
||||
@ -32,6 +33,7 @@ def build_rust_and_frontend() {
|
||||
def build_server_and_backend() {
|
||||
sh '''#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
TARGET=
|
||||
case "$arch" in
|
||||
amd64)
|
||||
@ -57,6 +59,7 @@ def build_server_and_backend() {
|
||||
def build_package() {
|
||||
sh '''#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
TARGET=
|
||||
case "$arch" in
|
||||
amd64)
|
||||
|
3
Makefile
3
Makefile
@ -73,6 +73,7 @@ antd-% sil%: httpd
|
||||
luafcgi:
|
||||
ifeq ($(LUAFCGI_IGNORE),)
|
||||
@echo "Building $@"
|
||||
mkdir -p $(BUILD_PREFIX)/bin
|
||||
RUSTUP_HOME=$(RUSTUP_HOME) CARGO_HOME=$(CARGO_HOME) \
|
||||
. $(CARGO_HOME)/env && \
|
||||
rustup default stable && \
|
||||
@ -100,11 +101,13 @@ clean:
|
||||
|
||||
backend:
|
||||
@echo "Building $@"
|
||||
mkdir -p $(BUILD_PREFIX)/htdocs/os
|
||||
DESTDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-backend
|
||||
|
||||
frontend:
|
||||
ifeq ($(FRONTEND_IGNORE),)
|
||||
@echo "Building $@"
|
||||
mkdir -p $(BUILD_PREFIX)/htdocs/os
|
||||
BUILDDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-frontend install_dev release
|
||||
else
|
||||
@echo "Ignore building $@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user