Commit d9d6e5f0 authored by probal31's avatar probal31
Browse files

Added separate jobs for building maui apps

parent 5c5d2ee0
Pipeline #4748 failed with stages
in 3 minutes and 32 seconds
......@@ -3,7 +3,8 @@ variables:
stages:
- .pre
- build
- build-mauikit
- build-mauiapp
- deploy
- .post
......@@ -83,9 +84,18 @@ cache:
mc cp station*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/ || true;
fi
.build-mauiapps-init-script: &build-mauiapps-init-script
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
# Build mauikit for amd64
build-mauikit-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build
stage: build-mauikit
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
script:
......@@ -96,9 +106,10 @@ build-mauikit-amd64:
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
# Build mauikit for arm64
build-mauikit-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build
stage: build-mauikit
tags:
- arm64
- selfhosted
......@@ -112,9 +123,10 @@ build-mauikit-arm64:
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
# Build mauikit for armhf
build-mauikit-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build
stage: build-mauikit
tags:
- armhf
- selfhosted
......@@ -128,109 +140,369 @@ build-mauikit-armhf:
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
build-mauiapps-amd64:
# Build maui apps for amd64
build-index-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build
stage: build-mauiapp
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
- export BRANCH=$([ -z $BRANCH_INDEX ] && echo "master" || echo $BRANCH_INDEX)
- ./index/build.sh
build-nota-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_NOTA ] && echo "master" || echo $BRANCH_NOTA)
- ./nota/build.sh
build-buho-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_BUHO ] && echo "master" || echo $BRANCH_BUHO)
- ./buho/build.sh
build-vvave-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_VVAVE ] && echo "master" || echo $BRANCH_VVAVE)
- ./vvave/build.sh
build-pix-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_PIX ] && echo "master" || echo $BRANCH_PIX)
- ./pix/build.sh
build-clip-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_CLIP ] && echo "master" || echo $BRANCH_CLIP)
- ./clip/build.sh
build-shelf-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
build-communicator-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_COMMUNICATOR ] && echo "master" || echo $BRANCH_COMMUNICATOR)
- ./communicator/build.sh
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
build-station-amd64:
image: mauikit/ubuntu-20.04-amd64:20220217
stage: build-mauiapp
before_script:
- *build-mauiapps-init-script
needs: ["build-mauikit-amd64"]
script:
- export TARGET_ARCH="amd64"
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
- ./station/build.sh
build-mauiapps-arm64:
# Build maui apps for arm64
build-index-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build
stage: build-mauiapp
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
- export BRANCH=$([ -z $BRANCH_INDEX ] && echo "master" || echo $BRANCH_INDEX)
- ./index/build.sh
build-nota-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_NOTA ] && echo "master" || echo $BRANCH_NOTA)
- ./nota/build.sh
build-buho-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_BUHO ] && echo "master" || echo $BRANCH_BUHO)
- ./buho/build.sh
build-vvave-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_VVAVE ] && echo "master" || echo $BRANCH_VVAVE)
- ./vvave/build.sh
build-pix-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_PIX ] && echo "master" || echo $BRANCH_PIX)
- ./pix/build.sh
- export BRANCH=$([ -z $BRANCH_CLIP ] && echo "master" || echo $BRANCH_CLIP)
- ./clip/build.sh
build-clip-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
build-shelf-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
build-communicator-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_COMMUNICATOR ] && echo "master" || echo $BRANCH_COMMUNICATOR)
- ./communicator/build.sh
build-station-arm64:
image: mauikit/ubuntu-20.04-arm64:20220204
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-arm64"]
tags:
- arm64
- selfhosted
script:
- export TARGET_ARCH="arm64"
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
- ./station/build.sh
build-mauiapps-armhf:
# Build maui apps for armhf
build-index-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build
stage: build-mauiapp
before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_KIRIGAMI ] && echo "master" || echo $BRANCH_KIRIGAMI)
- ./kirigami/build.sh
- export BRANCH=$([ -z $BRANCH_MAUIKIT ] && echo "master" || echo $BRANCH_MAUIKIT)
- ./mauikit/build.sh
- export BRANCH=$([ -z $BRANCH_INDEX ] && echo "master" || echo $BRANCH_INDEX)
- ./index/build.sh
build-nota-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_NOTA ] && echo "master" || echo $BRANCH_NOTA)
- ./nota/build.sh
build-buho-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_BUHO ] && echo "master" || echo $BRANCH_BUHO)
- ./buho/build.sh
build-vvave-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_VVAVE ] && echo "master" || echo $BRANCH_VVAVE)
- ./vvave/build.sh
build-pix-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_PIX ] && echo "master" || echo $BRANCH_PIX)
- ./pix/build.sh
build-clip-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_CLIP ] && echo "master" || echo $BRANCH_CLIP)
- ./clip/build.sh
build-shelf-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
build-communicator-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_COMMUNICATOR ] && echo "master" || echo $BRANCH_COMMUNICATOR)
- ./communicator/build.sh
build-station-armhf:
image: mauikit/ubuntu-20.04-armhf:20211004
stage: build-mauiapp
before_script:
*build-mauiapps-init-script
needs: ["build-mauikit-armhf"]
tags:
- armhf
- selfhosted
script:
- export TARGET_ARCH="armhf"
- export BRANCH=$([ -z $BRANCH_STATION ] && echo "master" || echo $BRANCH_STATION)
- ./station/build.sh
# Upload artifacts
upload-mauiapps-amd64:
image: ubuntu:20.04
stage: deploy
needs: [build-mauiapps-amd64]
needs: [build-index-amd64, build-nota-amd64, build-buho-amd64, build-vvave-amd64, build-pix-amd64, build-clip-amd64, build-shelf-amd64, build-communicator-amd64, build-station-amd64]
before_script:
- *configure_system_script
script:
......@@ -241,7 +513,7 @@ upload-mauiapps-amd64:
upload-mauiapps-arm64:
image: ubuntu:20.04
stage: deploy
needs: [build-mauiapps-arm64]
needs: [build-index-arm64, build-nota-arm64, build-buho-arm64, build-vvave-arm64, build-pix-arm64, build-clip-arm64, build-shelf-arm64, build-communicator-arm64, build-station-arm64]
before_script:
- *configure_system_script
script:
......@@ -252,7 +524,7 @@ upload-mauiapps-arm64:
upload-mauiapps-armhf:
image: ubuntu:20.04
stage: deploy
needs: [build-mauiapps-armhf]
needs: [build-index-armhf, build-nota-armhf, build-buho-armhf, build-vvave-armhf, build-pix-armhf, build-clip-armhf, build-shelf-armhf, build-communicator-armhf, build-station-armhf]
before_script:
- *configure_system_script
script:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment