2020-05-14 15:37:34 +00:00
|
|
|
.optional-release: &optional-release
|
2020-05-14 16:12:22 +00:00
|
|
|
stage: optional-builds
|
|
|
|
tags:
|
|
|
|
- veloren-docker
|
|
|
|
except:
|
|
|
|
- schedules
|
|
|
|
when: manual
|
2020-05-14 15:37:34 +00:00
|
|
|
|
|
|
|
optional-release:linux:
|
2020-05-14 16:12:22 +00:00
|
|
|
<<: *optional-release
|
|
|
|
script:
|
|
|
|
- cargo build --verbose --release
|
|
|
|
- cp target/release/veloren-server-cli $CI_PROJECT_DIR
|
|
|
|
- cp target/release/veloren-voxygen $CI_PROJECT_DIR
|
|
|
|
- strip --strip-all veloren-server-cli
|
|
|
|
- strip --strip-all veloren-voxygen
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- veloren-server-cli
|
|
|
|
- veloren-voxygen
|
|
|
|
- assets/
|
|
|
|
- LICENSE
|
|
|
|
expire_in: 1 week
|
2020-05-14 15:37:34 +00:00
|
|
|
|
|
|
|
optional-release:windows:
|
2020-05-14 16:12:22 +00:00
|
|
|
<<: *optional-release
|
|
|
|
script:
|
|
|
|
- cargo build --verbose --target=x86_64-pc-windows-gnu --release
|
|
|
|
- cp target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe $CI_PROJECT_DIR
|
|
|
|
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- veloren-server-cli.exe
|
|
|
|
- veloren-voxygen.exe
|
|
|
|
- assets/
|
|
|
|
- LICENSE
|
|
|
|
expire_in: 1 week
|
2020-05-20 13:09:10 +00:00
|
|
|
|
|
|
|
optional-release:macos:
|
|
|
|
<<: *optional-release
|
|
|
|
script:
|
|
|
|
- PATH="/dockercache/osxcross/target/bin:$PATH" COREAUDIO_SDK_PATH=/dockercache/osxcross/target/SDK/MacOSX10.13.sdk CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release
|
|
|
|
- cp -r target/x86_64-apple-darwin/release/veloren-server-cli $CI_PROJECT_DIR
|
|
|
|
- cp -r target/x86_64-apple-darwin/release/veloren-voxygen $CI_PROJECT_DIR
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- veloren-server-cli
|
|
|
|
- veloren-voxygen
|
|
|
|
- assets/
|
|
|
|
- LICENSE
|
|
|
|
expire_in: 1 week
|