From 92c5a7dd7c052ed19680c1633703c0f9f8540846 Mon Sep 17 00:00:00 2001 From: Forest Anderson Date: Wed, 19 Jun 2019 15:51:21 +0000 Subject: [PATCH] Added manual build option --- .gitlab-ci.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61317e2790..1843c91421 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -162,6 +162,55 @@ commit:windows-debug: - commit-windows-debug.zip expire_in: 1 week +############# +# Optional build +############# + +.optional: &optional + stage: executable + image: registry.gitlab.com/veloren/veloren-docker-ci + tags: + - veloren-docker + except: + - schedules + when: manual + +optional:linux-debug: + <<: *optional + script: + - (cd voxygen && VELOREN_ASSETS=assets cargo build) + - (cd server-cli && VELOREN_ASSETS=assets cargo build) + - rm -r -f optional-build + - mkdir optional-build + - cp target/debug/veloren-server-cli optional-build + - cp target/debug/veloren-voxygen optional-build + - cp -r assets optional-build/ + - cp -r voxygen/shaders optional-build/ + - tar -cvjSf bin/optional-linux-debug.tar.bz2 optional-build + - cp bin/optional-linux-debug.tar.bz2 $CI_PROJECT_DIR + artifacts: + paths: + - optional-linux-debug.tar.bz2 + expire_in: 1 week + +optional:windows-debug: + <<: *optional + script: + - (cd voxygen && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu) + - (cd server-cli && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu) + - rm -r -f optional-build + - mkdir optional-build + - cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe optional-build + - cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe optional-build + - cp -r assets optional-build/ + - cp -r voxygen/shaders optional-build/ + - zip -r bin/optional-windows-debug.zip optional-build + - cp bin/optional-windows-debug.zip $CI_PROJECT_DIR + artifacts: + paths: + - optional-windows-debug.zip + expire_in: 1 week + ############# # NIGHTLY #############