luaengineapp/.gitlab-ci.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

2019-09-24 17:25:39 +02:00
stages:
- build
2019-10-07 02:17:33 +02:00
- deploy
2019-09-24 17:25:39 +02:00
2019-10-07 02:17:33 +02:00
luaengine:
2019-09-24 17:25:39 +02:00
stage: build
2019-10-07 02:17:33 +02:00
image: syping/qt5-shared-mingw-openssl:5.12.5
2019-09-24 17:25:39 +02:00
variables:
QT_SELECT: "qt5-x86_64-w64-mingw32"
script:
- mkdir -p build
- cd build
- qmake CONFIG+=WITH_LUAENGINERUN ../luaengineapp.pro
2019-10-07 02:21:02 +02:00
- make -j4
2019-10-07 02:50:23 +02:00
- cp -Rf src/luaengine/release/luaengine.dll ../
- cp -Rf src/luaenginerun/release/luaengine.exe ../
- cp -Rf src/luaenginegui/release/luaenginegui.dll ../
- cp -Rf src/luaengineio/release/luaengineio.dll ../
- cp -Rf src/luaengineos/release/luaengineos.dll ../
2019-10-07 02:17:33 +02:00
- cd ..
artifacts:
paths:
2019-10-07 02:50:23 +02:00
- "luaengine.dll"
2019-10-07 02:17:33 +02:00
- "luaengine.exe"
2019-10-07 02:50:23 +02:00
- "luaenginegui.dll"
- "luaengineio.dll"
- "luaengineos.dll"
2019-10-07 02:17:33 +02:00
luaengineapp:
stage: build
image: syping/qt5-static-mingw-openssl:5.12.5
variables:
QT_SELECT: "qt5-x86_64-w64-mingw32"
script:
- mkdir -p build
- cd build
- qmake-static CONFIG+=WITH_LUAENGINEAPP ../luaengineapp.pro
2019-10-07 02:21:02 +02:00
- make -j4
2019-09-24 17:38:55 +02:00
- cp -Rf src/luaengineapp/release/luaengineapp.exe ../
2019-09-24 17:25:39 +02:00
- cd ..
2019-10-07 02:17:33 +02:00
artifacts:
paths:
- "luaengineapp.exe"
2019-10-07 02:19:01 +02:00
LuaEngine Setup:
2019-10-07 02:17:33 +02:00
stage: deploy
image: syping/qt5-shared-mingw-openssl:5.12.5
script:
- apt-get update -qq
- apt-get install nsis -qq
- nsis
2019-09-24 17:25:39 +02:00
artifacts:
2019-09-25 14:29:52 +02:00
name: "luaengine-$CI_COMMIT_REF_NAME-${CI_COMMIT_SHA:0:8}"
2019-09-24 17:25:39 +02:00
paths:
2019-10-07 02:19:01 +02:00
- "luaengine_setup.exe"
2019-10-07 02:17:33 +02:00
dependencies:
- luaengine
- luaengineapp