From b8a15cf02cd1ab558b624b1981495b5e49a1f8d9 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sun, 10 Mar 2024 00:29:10 +0100 Subject: [PATCH] fix(CI): make taret shall create output directory if not exist --- Jenkinsfile | 3 +++ Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d07738f..61018b8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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) diff --git a/Makefile b/Makefile index 0c06f9d..6c5f93c 100644 --- a/Makefile +++ b/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 $@"