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
|