mirror of
https://github.com/antos-rde/antos.git
synced 2025-04-30 04:36:47 +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() {
|
def build_rust_and_frontend() {
|
||||||
sh '''#!/bin/bash
|
sh '''#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
export RUSTUP_HOME=/opt/rust/rustup
|
export RUSTUP_HOME=/opt/rust/rustup
|
||||||
export CARGO_HOME=/opt/rust/cargo
|
export CARGO_HOME=/opt/rust/cargo
|
||||||
TARGET=
|
TARGET=
|
||||||
@ -32,6 +33,7 @@ def build_rust_and_frontend() {
|
|||||||
def build_server_and_backend() {
|
def build_server_and_backend() {
|
||||||
sh '''#!/bin/bash
|
sh '''#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
TARGET=
|
TARGET=
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
amd64)
|
amd64)
|
||||||
@ -57,6 +59,7 @@ def build_server_and_backend() {
|
|||||||
def build_package() {
|
def build_package() {
|
||||||
sh '''#!/bin/bash
|
sh '''#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
TARGET=
|
TARGET=
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
amd64)
|
amd64)
|
||||||
|
3
Makefile
3
Makefile
@ -73,6 +73,7 @@ antd-% sil%: httpd
|
|||||||
luafcgi:
|
luafcgi:
|
||||||
ifeq ($(LUAFCGI_IGNORE),)
|
ifeq ($(LUAFCGI_IGNORE),)
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
|
mkdir -p $(BUILD_PREFIX)/bin
|
||||||
RUSTUP_HOME=$(RUSTUP_HOME) CARGO_HOME=$(CARGO_HOME) \
|
RUSTUP_HOME=$(RUSTUP_HOME) CARGO_HOME=$(CARGO_HOME) \
|
||||||
. $(CARGO_HOME)/env && \
|
. $(CARGO_HOME)/env && \
|
||||||
rustup default stable && \
|
rustup default stable && \
|
||||||
@ -100,11 +101,13 @@ clean:
|
|||||||
|
|
||||||
backend:
|
backend:
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
|
mkdir -p $(BUILD_PREFIX)/htdocs/os
|
||||||
DESTDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-backend
|
DESTDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-backend
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
ifeq ($(FRONTEND_IGNORE),)
|
ifeq ($(FRONTEND_IGNORE),)
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
|
mkdir -p $(BUILD_PREFIX)/htdocs/os
|
||||||
BUILDDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-frontend install_dev release
|
BUILDDIR=$(BUILD_PREFIX)/htdocs/os make -C antos-frontend install_dev release
|
||||||
else
|
else
|
||||||
@echo "Ignore building $@"
|
@echo "Ignore building $@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user