Add Windows static target to .gitlab-ci.yml (incomplete)
This commit is contained in:
parent
21c9632de0
commit
9c895ae6c4
@ -1,5 +1,3 @@
|
|||||||
image: rabits/qt:5.9-desktop
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
@ -15,6 +13,7 @@ before_script:
|
|||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
build linux x86_64:
|
build linux x86_64:
|
||||||
|
image: rabits/qt:5.9-desktop
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -27,7 +26,35 @@ build linux x86_64:
|
|||||||
paths:
|
paths:
|
||||||
- bin/
|
- bin/
|
||||||
|
|
||||||
deploy:
|
build windows i686:
|
||||||
|
image: fffaraz/qt
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- linux
|
||||||
|
script:
|
||||||
|
- qmake
|
||||||
|
- make -j4
|
||||||
|
- upx --lzma -9 --force bin/Attorney_Online.exe
|
||||||
|
|
||||||
|
# Base folder
|
||||||
|
.deploy_base: &deploy_base
|
||||||
|
- mkdir base
|
||||||
|
- mkdir base/themes
|
||||||
|
- cp -a ../base/themes/default base/themes/
|
||||||
|
- cp -a ../base/config.ini base/config.sample.ini
|
||||||
|
- cp -a ../base/serverlist.txt base/serverlist.sample.txt
|
||||||
|
|
||||||
|
# Miscellaneous files
|
||||||
|
.deploy_misc: &deploy_misc
|
||||||
|
- cp -a ../README.md README.md.txt
|
||||||
|
- cp -a ../LICENSE.MIT LICENSE.txt
|
||||||
|
|
||||||
|
# Shared libraries
|
||||||
|
.deploy_libs: &deploy_libs
|
||||||
|
- cp -a ../lib/* .
|
||||||
|
|
||||||
|
deploy linux:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- build linux x86_64
|
- build linux x86_64
|
||||||
@ -37,20 +64,9 @@ deploy:
|
|||||||
script:
|
script:
|
||||||
- mkdir artifact
|
- mkdir artifact
|
||||||
- cd artifact
|
- cd artifact
|
||||||
|
- *deploy_base
|
||||||
# Base folder
|
- *deploy_misc
|
||||||
- mkdir base
|
- *deploy_libs
|
||||||
- mkdir base/themes
|
|
||||||
- cp -a ../base/themes/default base/themes/
|
|
||||||
- cp -a ../base/config.ini base/config.sample.ini
|
|
||||||
- cp -a ../base/serverlist.txt base/serverlist.sample.txt
|
|
||||||
|
|
||||||
# Miscellaneous files
|
|
||||||
- cp -a ../README.md README.md.txt
|
|
||||||
- cp -a ../LICENSE.MIT LICENSE.txt
|
|
||||||
|
|
||||||
# Shared libraries
|
|
||||||
- cp -a ../lib/* .
|
|
||||||
|
|
||||||
# Platform-specific
|
# Platform-specific
|
||||||
- cp -a ../bin/Attorney_Online .
|
- cp -a ../bin/Attorney_Online .
|
||||||
@ -63,7 +79,30 @@ deploy:
|
|||||||
- mkdir ../zip
|
- mkdir ../zip
|
||||||
- tar cavf ../zip/Attorney_Online_$(git describe --tags)_x64.tar.xz *
|
- tar cavf ../zip/Attorney_Online_$(git describe --tags)_x64.tar.xz *
|
||||||
- sha1sum ../zip/*
|
- sha1sum ../zip/*
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- zip/
|
||||||
|
|
||||||
|
deploy windows:
|
||||||
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- build windows i686
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- linux
|
||||||
|
script:
|
||||||
|
- mkdir artifact
|
||||||
|
- cd artifact
|
||||||
|
- *deploy_base
|
||||||
|
- *deploy_misc
|
||||||
|
- *deploy_libs
|
||||||
|
|
||||||
|
# Platform-specific
|
||||||
|
- cp -a ../bin/Attorney_Online.exe .
|
||||||
|
|
||||||
|
# Zipping
|
||||||
|
# -r: recursive; -9: max compression; -l: convert to CR LF
|
||||||
|
- zip -r -9 -l Attorney_Online_$(git describe --tags)_windows_i386.zip .
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- zip/
|
- zip/
|
Loading…
Reference in New Issue
Block a user