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

This commit is contained in:
DanyLE 2024-03-10 00:29:10 +01:00
parent 9d88e9f1fa
commit b8a15cf02c
2 changed files with 6 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -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)

View File

@ -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 $@"