From 683298b0bfb843226a283adc0607ef5495a56c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Sun, 4 Aug 2019 16:24:20 +0200 Subject: [PATCH] prepare release builds in release branches --- .gitlab-ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a75e5ea40..74aea7bc6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -213,6 +213,58 @@ optional:windows-debug: - optional-windows-debug.zip expire_in: 1 week +############# +# Optional release build +############# + +.optional-release: &optional-release + stage: executable + image: registry.gitlab.com/veloren/veloren-docker-ci + tags: + - veloren-docker + except: + - schedules + when: manual + only: + refs: + - r*.* + +optional-release:linux-debug: + <<: *optional-release + script: + - (cd voxygen && VELOREN_ASSETS=assets cargo build --release) + - (cd server-cli && VELOREN_ASSETS=assets cargo build --release) + - rm -r -f optional-release-build + - mkdir optional-release-build + - cp target/debug/veloren-server-cli optional-release-build + - cp target/debug/veloren-voxygen optional-release-build + - cp -r assets optional-release-build/ + - cp -r voxygen/shaders optional-release-build/ + - tar -cvjSf bin/optional-release-linux-debug.tar.bz2 optional-release-build + - cp bin/optional-release-linux-debug.tar.bz2 $CI_PROJECT_DIR + artifacts: + paths: + - optional-release-linux-debug.tar.bz2 + expire_in: 1 month + +optional-release:windows-debug: + <<: *optional-release + script: + - (cd voxygen && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu) + - (cd server-cli && VELOREN_ASSETS=assets cargo build --release --target=x86_64-pc-windows-gnu) + - rm -r -f optional-release-build + - mkdir optional-release-build + - cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe optional-release-build + - cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe optional-release-build + - cp -r assets optional-release-build/ + - cp -r voxygen/shaders optional-release-build/ + - zip -r bin/optional-release-windows-debug.zip optional-release-build + - cp bin/optional-release-windows-debug.zip $CI_PROJECT_DIR + artifacts: + paths: + - optional-windows-release-debug.zip + expire_in: 1 month + ############# # NIGHTLY #############