mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-04 21:16:56 +01:00
93 lines
3.8 KiB
YAML
93 lines
3.8 KiB
YAML
stages:
|
|
- runtime
|
|
- portable
|
|
- deploy
|
|
|
|
LuaEngine Windows:
|
|
stage: runtime
|
|
image: syping/qt5-shared-mingw-openssl:5.12.8
|
|
variables:
|
|
QT_SELECT: "qt5-x86_64-w64-mingw32"
|
|
script:
|
|
- mkdir -p ${CI_PROJECT_DIR}/build
|
|
- cd ${CI_PROJECT_DIR}/build
|
|
- qmake CONFIG+=WITH_LUAENGINE_COMPILER CONFIG+=WITH_LUAENGINE_RUNTIME ${CI_PROJECT_DIR}/luaengine.pro
|
|
- make -j4
|
|
- cp -Rf src/luaenginecore/release/LuaEngine.dll ${CI_PROJECT_DIR}/
|
|
- cp -Rf src/luaenginegui/release/LuaEngineGui.dll ${CI_PROJECT_DIR}/
|
|
- cp -Rf src/luaengineio/release/LuaEngineIO.dll ${CI_PROJECT_DIR}/
|
|
- cp -Rf src/luaengineos/release/LuaEngineOS.dll ${CI_PROJECT_DIR}/
|
|
- cp -Rf src/luaengine/release/luaengine.exe ${CI_PROJECT_DIR}/
|
|
- cp -Rf src/luaenginec/release/luaenginec.exe ${CI_PROJECT_DIR}/
|
|
- cd ${CI_PROJECT_DIR}
|
|
artifacts:
|
|
paths:
|
|
- "LuaEngine.dll"
|
|
- "luaengine.exe"
|
|
- "luaenginec.exe"
|
|
- "LuaEngineGui.dll"
|
|
- "LuaEngineIO.dll"
|
|
- "LuaEngineOS.dll"
|
|
|
|
LuaEngine Debian amd64:
|
|
stage: runtime
|
|
image: syping/debian9-qt5:amd64
|
|
script:
|
|
- mkdir -p ${CI_PROJECT_DIR}/build
|
|
- cd ${CI_PROJECT_DIR}/build
|
|
- /usr/lib/x86_64-linux-gnu/qt5/bin/qmake LUAENGINE_PREFIX=/usr LUAENGINE_LIBDIR=/usr/lib/x86_64-linux-gnu CONFIG+=WITH_LUAENGINE_COMPILER CONFIG+=WITH_LUAENGINE_RUNTIME ${CI_PROJECT_DIR}/luaengine.pro
|
|
- make -j4
|
|
- echo "LuaEngine" > description-pak
|
|
- checkinstall --default --fstrans=no --install=no --nodoc --pkgname=luaengine "--pkglicense=Apache 2.0" --pkggroup=utility --pkgrelease=deb9u${CI_PIPELINE_IID} "--maintainer=Syping GitLab \<gitlab@syping.de\>" --requires=libqt5core5a,libqt5gui5,libqt5widgets5,qttranslations5-l10n --provides=libluaengine,libluaenginegui,libluaengineio,libluaengineos --conflicts=libluaengine,libluaenginegui,libluaengineio,libluaengineos --pakdir=${CI_PROJECT_DIR}
|
|
- cd ${CI_PROJECT_DIR}
|
|
artifacts:
|
|
paths:
|
|
- "luaengine_*.deb"
|
|
|
|
LuaEngine Debian armhf:
|
|
stage: runtime
|
|
image: syping/debian9-qt5:arm32v7
|
|
tags:
|
|
- armhf
|
|
script:
|
|
- mkdir -p ${CI_PROJECT_DIR}/build
|
|
- cd ${CI_PROJECT_DIR}/build
|
|
- /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake LUAENGINE_PREFIX=/usr LUAENGINE_LIBDIR=/usr/lib/arm-linux-gnueabihf CONFIG+=WITH_LUAENGINE_COMPILER CONFIG+=WITH_LUAENGINE_RUNTIME ${CI_PROJECT_DIR}/luaengine.pro
|
|
- make -j4
|
|
- echo "LuaEngine" > description-pak
|
|
- checkinstall --default --fstrans=no --install=no --nodoc --pkgname=luaengine "--pkglicense=Apache 2.0" --pkggroup=utility --pkgrelease=deb9u${CI_PIPELINE_IID} "--maintainer=Syping GitLab \<gitlab@syping.de\>" --requires=libqt5core5a,libqt5gui5,libqt5widgets5,qttranslations5-l10n --provides=libluaengine,libluaenginegui,libluaengineio,libluaengineos --conflicts=libluaengine,libluaenginegui,libluaengineio,libluaengineos --pakdir=${CI_PROJECT_DIR}
|
|
- cd ${CI_PROJECT_DIR}
|
|
artifacts:
|
|
paths:
|
|
- "luaengine_*.deb"
|
|
|
|
LuaEngine PE Windows:
|
|
stage: portable
|
|
image: syping/qt5-static-mingw-openssl:5.12.8
|
|
variables:
|
|
QT_SELECT: "qt5-x86_64-w64-mingw32"
|
|
script:
|
|
- mkdir -p ${CI_PROJECT_DIR}/build
|
|
- cd ${CI_PROJECT_DIR}/build
|
|
- qmake-static CONFIG+=WITH_LUAENGINE_APPSTUB ${CI_PROJECT_DIR}/luaengine.pro
|
|
- make -j4
|
|
- cp -Rf src/luaengineapp/release/LuaEngineApp.exe ${CI_PROJECT_DIR}/windows.le
|
|
- cd ${CI_PROJECT_DIR}
|
|
artifacts:
|
|
paths:
|
|
- "windows.le"
|
|
|
|
LuaEngine Setup:
|
|
stage: deploy
|
|
image: syping/qt5-shared-mingw-openssl:5.12.8
|
|
script:
|
|
- apt-get update -qq
|
|
- apt-get install nsis -qq
|
|
- makensis -NOCD ${CI_PROJECT_DIR}/.ci/luaengine.nsi
|
|
artifacts:
|
|
name: "luaengine-$CI_COMMIT_REF_NAME-${CI_COMMIT_SHA:0:8}"
|
|
paths:
|
|
- "luaengine_setup.exe"
|
|
dependencies:
|
|
- LuaEngine Windows
|
|
- LuaEngine PE Windows
|