Commit 87d7f784 authored by ab0027's avatar ab0027 💬
Browse files

Add shelf and clip builds

parent 00d04671
Pipeline #3165 failed with stages
in 28 minutes and 5 seconds
......@@ -11,7 +11,6 @@ before_script:
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- cat ubports-pubkey.gpg | apt-key add -
- echo 'deb http://repo.ubports.com bionic main' > /etc/apt/sources.list.d/ubports.list
- apt-get -yy update && apt-get -yy install $(cat ./BUILD_PACKAGES)
- wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/bin/mc
- chmod +x /usr/bin/mc
- mc config host add nx $NITRUX_STORAGE_URL $NITRUX_STORAGE_ACCESS_KEY $NITRUX_STORAGE_SECRET_KEY
......@@ -39,6 +38,8 @@ after_script:
mc mb nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
mc mb nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
mc mb nx/maui/$BUILD_TYPE/communicator/$BRANCH_COMMUNICATOR/;
mc mb nx/maui/$BUILD_TYPE/clip/$BRANCH_CLIP/;
mc mb nx/maui/$BUILD_TYPE/shelf/$BRANCH_SHELF/;
echo $BRANCH_MAUIKIT | mc pipe nx/maui/$BUILD_TYPE/mauikit/LATEST;
echo $BRANCH_INDEX | mc pipe nx/maui/$BUILD_TYPE/index/LATEST;
echo $BRANCH_NOTA | mc pipe nx/maui/$BUILD_TYPE/nota/LATEST;
......@@ -47,6 +48,8 @@ after_script:
echo $BRANCH_PIX | mc pipe nx/maui/$BUILD_TYPE/pix/LATEST;
echo $BRANCH_STATION | mc pipe nx/maui/$BUILD_TYPE/station/LATEST;
echo $BRANCH_COMMUNICATOR | mc pipe nx/maui/$BUILD_TYPE/communicator/LATEST;
echo $BRANCH_CLIP | mc pipe nx/maui/$BUILD_TYPE/clip/LATEST;
echo $BRANCH_SHELF | mc pipe nx/maui/$BUILD_TYPE/shelf/LATEST;
mc cp mauikit*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/mauikit/$BRANCH_MAUIKIT/;
mc cp index*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/index/$BRANCH_INDEX/;
mc cp nota*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/nota/$BRANCH_NOTA/;
......@@ -55,6 +58,8 @@ after_script:
mc cp pix*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/pix/$BRANCH_PIX/;
mc cp station*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/;
mc cp communicator*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/communicator/$BRANCH_COMMUNICATOR/;
mc cp clip*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/clip/$BRANCH_CLIP/;
mc cp shelf*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/shelf/$BRANCH_SHELF/;
fi
### Grouped builds together to reduce build time
......@@ -64,7 +69,7 @@ after_script:
# Stage builds-amd64
###
builds-amd64:
image: mauikit/ubuntu-20.04-amd64:29012020-1
image: mauikit/ubuntu-20.04-amd64:26022021
stage: builds-amd64
script:
- rm -rf ./build/
......@@ -87,6 +92,10 @@ builds-amd64:
- ./nx-sc/build.sh
#- export BRANCH=$([ -z $BRANCH_COMMUNICATOR ] && echo "master" || echo $BRANCH_COMMUNICATOR)
#- ./communicator/build.sh
- export BRANCH=$([ -z $BRANCH_CLIP ] && echo "master" || echo $BRANCH_CLIP)
- ./clip/build.sh
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
###
# END Stage builds-amd64
###
......@@ -96,7 +105,7 @@ builds-amd64:
# Stage builds-arm
###
builds-arm64:
image: mauikit/ubuntu-20.04-arm64:04022021-1
image: mauikit/ubuntu-20.04-arm64:26022021
stage: builds-arm
script:
- rm -rf ./build/
......@@ -126,6 +135,10 @@ builds-arm64:
#- export BRANCH=$([ -z $BRANCH_COMMUNICATOR ] && echo "master" || echo $BRANCH_COMMUNICATOR)
#- ./communicator/build.sh
#- ./build-apk.sh 'communicator' 'https://invent.kde.org/maui/maui-dialer.git'
- export BRANCH=$([ -z $BRANCH_CLIP ] && echo "master" || echo $BRANCH_CLIP)
- ./clip/build.sh
- export BRANCH=$([ -z $BRANCH_SHELF ] && echo "master" || echo $BRANCH_SHELF)
- ./shelf/build.sh
###
# END Stage builds-arm
###
checkinstall
cmake
curl
devscripts
equivs
extra-cmake-modules
gettext
git
kirigami2-dev
libexiv2-dev
libgdk-pixbuf2.0-dev
libkdecorations2-dev
libkf5archive-dev
libkf5auth-dev
libkf5bookmarks-dev
libkf5codecs-dev
libkf5completion-dev
libkf5config-dev
libkf5configwidgets-dev
libkf5contacts-dev
libkf5coreaddons-dev
libkf5declarative-dev
libkf5i18n-dev
libkf5itemviews-dev
libkf5kio-dev
libkf5notifications-dev
libkf5people-dev
libkf5plasma-dev
libkf5service-dev
libkf5syntaxhighlighting-dev
libkf5widgetsaddons-dev
libqt5multimedia5-plugins
libqt5sql5-sqlite
libqt5svg5-dev
libqt5webchannel5-dev
libqt5websockets5-dev
libqt5webview5-dev
libtag1-dev
qml-module-qtgraphicaleffects
qtbase5-dev
qtdeclarative5-dev
qtmultimedia5-dev
qtquickcontrols2-5-dev
qtwebengine5-dev
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.maui.clip
name: clip
icon: clip
version: !ENV ${APP_VERSION}
exec: usr/bin/clip
exec_args: $@
runtime:
generator: wrapper
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/x86_64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio:$APPDIR/usr/lib/x86_64-linux-gnu/samba"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.neon.kde.org/user focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse'
include:
# CORE DEPENDENCIES
- gettext
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- qml-module-qtquick-controls2
- qml-module-qtquick-dialogs
- qml-module-qtquick-layouts
- qml-module-qtquick-shapes
- qml-module-qtquick2
- qml-module-qtqml-models2
- qml-module-qtqml-statemachine
- qml-module-qtqml-workerscript2
- qml-module-qt-labs-platform
- qml-module-qt-labs-settings
- qml-module-qtmultimedia
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkdecorations2-5v5
- libkdecorations2private7
- kio
- kio-extras
- libkf5plasma5
- libkf5plasmaquick5
- qml-module-org-kde-kirigami2
# OTHER DEPENDENCIES
- libmpv1
- samba-libs
- libcrypt1
exclude:
- "*dbgsym*"
#- gcc-8
#- libgcc
#- g++
#- gnupg
#- gpg
#- gpgagent
- sound-theme-freedesktop
- systemd
- systemd-*
- perl
- perl-*
- gnupg
files:
exclude:
- usr/include
- usr/share/man
- usr/share/doc
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- lib/systemd
- etc/systemd
#- usr/share/perl*
- usr/bin/systemd*
- usr/bin/dpkg*
#- usr/bin/python*
#- usr/bin/perl*
- usr/bin/*-linux-gnu-*
#- usr/lib/python*
#- usr/lib/x86_64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "x86_64"
update-information: None
sign-key: None
file_name: !ENV 'clip-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.maui.clip
name: clip
icon: clip
version: !ENV ${APP_VERSION}
exec: usr/bin/clip
exec_args: $@
runtime:
generator: wrapper
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/aarch64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/aarch64-linux-gnu:$APPDIR/usr/lib:$APPDIR/usr/lib/aarch64-linux-gnu:$APPDIR/usr/lib/aarch64-linux-gnu/pulseaudio:$APPDIR/usr/lib/aarch64-linux-gnu/samba"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: arm64
sources:
- sourceline: 'deb [arch=arm64] http://archive.neon.kde.org/dev/unstable focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted multiverse universe'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=arm64] http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x165d673674a995b3e64bf0cf4f191a5a8844c542'
include:
# CORE DEPENDENCIES
- gettext
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- qml-module-qtquick-controls2
- qml-module-qtquick-dialogs
- qml-module-qtquick-layouts
- qml-module-qtquick-shapes
- qml-module-qtquick2
- qml-module-qtqml-models2
- qml-module-qtqml-statemachine
- qml-module-qtqml-workerscript2
- qml-module-qt-labs-platform
- qml-module-qt-labs-settings
- qml-module-qtmultimedia
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkdecorations2-5v5
- libkdecorations2private7
- kio
- kio-extras
- libkf5plasma5
- libkf5plasmaquick5
- qml-module-org-kde-kirigami2
# OTHER DEPENDENCIES
- libmpv1
- samba-libs
- libcrypt1
exclude:
- "*dbgsym*"
#- gcc-8
#- libgcc
#- g++
#- gnupg
#- gpg
#- gpgagent
- sound-theme-freedesktop
- systemd
- systemd-*
- perl
- perl-*
- gnupg
files:
exclude:
- usr/include
- usr/share/man
- usr/share/doc
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- lib/systemd
- etc/systemd
#- usr/share/perl*
- usr/bin/systemd*
- usr/bin/dpkg*
#- usr/bin/python*
#- usr/bin/perl*
- usr/bin/*-linux-gnu-*
#- usr/lib/python*
#- usr/lib/aarch64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "aarch64"
update-information: None
sign-key: None
file_name: !ENV 'clip-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
#!/usr/bin/env bash
set -ex
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
source $SCRIPTPATH/../functions.sh
BUILD_DIR=$PWD
APPDIR="$BUILD_DIR/AppDir"
git_clone_or_update "$SCRIPTPATH/../build/clip-git" 'https://invent.kde.org/maui/clip.git' $BRANCH
build_cmake_project 'clip-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# deploy Luv icon theme as fallback
git_clone_or_update "$SCRIPTPATH/../build/luv-git" 'https://github.com/Nitrux/luv-icon-theme.git'
mkdir -p "$APPDIR"/usr/share/icons/hicolor/
cp -vrf $SCRIPTPATH/../build/luv-git/Luv/* "$APPDIR"/usr/share/icons/hicolor/
rm "$APPDIR"/usr/share/icons/hicolor/icon-theme.cache
# workaround plasma-mobile asuming that breeze is the fallback icon theme
ln -s ./hicolor "$APPDIR"/usr/share/icons/breeze
deploy_deb_packages "$APPDIR" mauikit-git qml-module-org-kde-kirigami2 clip-git
export COMMIT_ID=$(cd $SCRIPTPATH/../build/pix-git && git rev-parse --short HEAD)
# workaround libcrypt.so.2 binary still name as libcrypt.so.1 in debian systems
(
if [ $TARGET_ARCH = "amd64" ]; then
cd $APPDIR/usr/lib/x86_64-linux-gnu/
ln -s ../../../opt/libc/lib/x86_64-linux-gnu/libcrypt.so.1 ./libcrypt.so.1
elif [ $TARGET_ARCH = "arm64" ]; then
cd $APPDIR/usr/lib/aarch64-linux-gnu/
ln -s ../../../opt/libc/lib/aarch64-linux-gnu/libcrypt.so.1 ./libcrypt.so.1
fi
)
appimage-builder --skip-tests --recipe $SCRIPTPATH/appimage-${TARGET_ARCH}.yml
#$SCRIPTPATH/../build-deb.sh 'clip' 'https://invent.kde.org/maui/clip.git' $EXTRA_CMAKE_ARGS || true
$sudo rm -rf ./AppDir ./appimage-builder-cache
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.maui.shelf
name: shelf
icon: shelf
version: !ENV ${APP_VERSION}
exec: usr/bin/shelf
exec_args: $@
runtime:
generator: wrapper
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/x86_64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.neon.kde.org/user focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse'
include:
# CORE DEPENDENCIES
- gettext
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- qml-module-qtquick-controls2
- qml-module-qtquick-dialogs
- qml-module-qtquick-layouts
- qml-module-qtquick-shapes
- qml-module-qtquick2
- qml-module-qtqml-models2
- qml-module-qtqml-statemachine
- qml-module-qtqml-workerscript2
- qml-module-qt-labs-platform
- qml-module-qt-labs-settings
- qml-module-qtmultimedia
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkdecorations2-5v5
- libkdecorations2private7
- kio
- kio-extras
- libkf5plasma5
- libkf5plasmaquick5
- qml-module-org-kde-kirigami2
# OTHER DEPENDENCIES
- libpoppler97
- libpoppler-qt5-1
exclude:
- "*dbgsym*"
#- gcc-8
#- libgcc
#- g++
#- gnupg
#- gpg
#- gpgagent
- sound-theme-freedesktop
- systemd
- systemd-*
- perl
- perl-*
- gnupg
files:
exclude:
- usr/include
- usr/share/man
- usr/share/doc
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- lib/systemd
- etc/systemd
#- usr/share/perl*
- usr/bin/systemd*
- usr/bin/dpkg*
#- usr/bin/python*
#- usr/bin/perl*
- usr/bin/*-linux-gnu-*
#- usr/lib/python*
#- usr/lib/x86_64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "x86_64"
update-information: None
sign-key: None
file_name: !ENV 'shelf-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
version: 1
AppDir:
path: ./AppDir
app_info:
id: org.maui.shelf
name: shelf
icon: shelf
version: !ENV ${APP_VERSION}
exec: usr/bin/shelf
exec_args: $@
runtime:
generator: wrapper
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/bin:${APPDIR}/usr/lib/aarch64-linux-gnu/libexec/kf5:${PATH}'
APPDIR_LIBRARY_PATH: "$APPDIR/lib/aarch64-linux-gnu:$APPDIR/usr/lib:$APPDIR/usr/lib/aarch64-linux-gnu:$APPDIR/usr/lib/aarch64-linux-gnu/pulseaudio"
QT_QUICK_CONTROLS_STYLE: 'maui-style'
apt:
arch: arm64
sources:
- sourceline: 'deb [arch=arm64] http://archive.neon.kde.org/dev/unstable focal main'
key_url: 'http://archive.neon.kde.org/public.key'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main resticted multiverse universe'
- sourceline: 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted multiverse universe'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=arm64] http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x165d673674a995b3e64bf0cf4f191a5a8844c542'
include:
# CORE DEPENDENCIES
- gettext
# BASIC QT DEPENDENCIES
- libqt5svg5
- libqt5sql5-sqlite
- qtwayland5
# QT QUICK DEPENDENCIES
- qml-module-qtquick-controls
- qml-module-qtquick-controls2
- qml-module-qtquick-dialogs
- qml-module-qtquick-layouts
- qml-module-qtquick-shapes
- qml-module-qtquick2
- qml-module-qtqml-models2
- qml-module-qtqml-statemachine
- qml-module-qtqml-workerscript2
- qml-module-qt-labs-platform
- qml-module-qt-labs-settings
- qml-module-qtmultimedia
# KF5 DEPENDENCIES
- libkf5i18n5
- libkf5notifications5
- libkf5configcore5
- libkf5configgui5
- libkf5configwidgets5
- libkdecorations2-5v5
- libkdecorations2private7
- kio
- kio-extras
- libkf5plasma5
- libkf5plasmaquick5
- qml-module-org-kde-kirigami2
# OTHER DEPENDENCIES
- libpoppler97
- libpoppler-qt5-1
exclude:
- "*dbgsym*"
#- gcc-8
#- libgcc
#- g++
#- gnupg
#- gpg
#- gpgagent
- sound-theme-freedesktop
- systemd
- systemd-*
- perl
- perl-*
- gnupg
files:
exclude:
- usr/include
- usr/share/man
- usr/share/doc
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- lib/systemd
- etc/systemd
#- usr/share/perl*
- usr/bin/systemd*
- usr/bin/dpkg*
#- usr/bin/python*
#- usr/bin/perl*
- usr/bin/*-linux-gnu-*
#- usr/lib/python*
#- usr/lib/aarch64-linux-gnu/perl*
- usr/share/locale
AppImage:
arch: "aarch64"
update-information: None
sign-key: None
file_name: !ENV 'shelf-${BUILD_TYPE}-${APP_VERSION}-git+${COMMIT_ID}-${TARGET_ARCH}.AppImage'
#!/usr/bin/env bash
set -ex
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
source $SCRIPTPATH/../functions.sh
BUILD_DIR=$PWD
APPDIR="$BUILD_DIR/AppDir"
git_clone_or_update "$SCRIPTPATH/../build/shelf-git" 'https://invent.kde.org/maui/shelf.git' $BRANCH
build_cmake_project 'shelf-git' $SCRIPTPATH/../build $EXTRA_CMAKE_ARGS
# deploy Luv icon theme as fallback
git_clone_or_update "$SCRIPTPATH/../build/luv-git" 'https://github.com/Nitrux/luv-icon-theme.git'
mkdir -p "$APPDIR"/usr/share/icons/hicolor/
cp -vrf $SCRIPTPATH/../build/luv-git/Luv/* "$APPDIR"/usr/share/icons/hicolor/
rm "$APPDIR"/usr/share/icons/hicolor/icon-theme.cache