Tweak to build debuginfo artifact

This commit is contained in:
Imbris 2020-09-05 03:18:12 -04:00
parent 518e4e3a5d
commit 559587987a
3 changed files with 14 additions and 15 deletions

View File

@ -39,6 +39,7 @@ workflow:
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- when: always
include: include:
- local: .gitlab/CI/recompile.yml - local: .gitlab/CI/recompile.yml

View File

@ -34,9 +34,9 @@ benchmarks:
.tlinux: .tlinux:
script: script:
- ln -s /dockercache/cache-release-linux target - ln -s /dockercache/cache-release-linux target
- cargo build --release - cargo build -Zunstable-options --profile debuginfo
- cp -r target/release/veloren-server-cli $CI_PROJECT_DIR - cp -r target/debuginfo/veloren-server-cli $CI_PROJECT_DIR
- cp -r target/release/veloren-voxygen $CI_PROJECT_DIR - cp -r target/debuginfo/veloren-voxygen $CI_PROJECT_DIR
artifacts: artifacts:
paths: paths:
- veloren-server-cli - veloren-server-cli
@ -48,9 +48,9 @@ benchmarks:
.twindows: .twindows:
script: script:
- ln -s /dockercache/cache-release-windows target - ln -s /dockercache/cache-release-windows target
- cargo build --target=x86_64-pc-windows-gnu --release - cargo build --target=x86_64-pc-windows-gnu -Zunstable-options --profile debuginfo
- cp -r target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe $CI_PROJECT_DIR - cp -r target/x86_64-pc-windows-gnu/debuginfo/veloren-server-cli.exe $CI_PROJECT_DIR
- cp -r target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR - cp -r target/x86_64-pc-windows-gnu/debuginfo/veloren-voxygen.exe $CI_PROJECT_DIR
artifacts: artifacts:
paths: paths:
- veloren-server-cli.exe - veloren-server-cli.exe
@ -62,9 +62,9 @@ benchmarks:
.tmacos: .tmacos:
script: script:
- ln -s /dockercache/cache-release-macos target - ln -s /dockercache/cache-release-macos target
- 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 - 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 -Zuntable-options --profile debuginfo
- cp -r target/x86_64-apple-darwin/release/veloren-server-cli $CI_PROJECT_DIR - cp -r target/x86_64-apple-darwin/debuginfo/veloren-server-cli $CI_PROJECT_DIR
- cp -r target/x86_64-apple-darwin/release/veloren-voxygen $CI_PROJECT_DIR - cp -r target/x86_64-apple-darwin/debuginfo/veloren-voxygen $CI_PROJECT_DIR
artifacts: artifacts:
paths: paths:
- veloren-server-cli - veloren-server-cli
@ -93,14 +93,14 @@ macos:
opt-linux: opt-linux:
extends: extends:
- .tlinux - .tlinux
- .optional-release - .optional-debuginfo
opt-windows: opt-windows:
extends: extends:
- .twindows - .twindows
- .optional-release - .optional-debuginfo
opt-macos: opt-macos:
extends: extends:
- .tmacos - .tmacos
- .optional-release - .optional-debuginfo

View File

@ -1,11 +1,9 @@
# allow_failure: true makes these pipelines manual and "non-blocking" which changed with except -> rule syntax # allow_failure: true makes these pipelines manual and "non-blocking" which changed with except -> rule syntax
.optional-release: .optional-debuginfo:
stage: check stage: check
tags: tags:
- veloren-docker - veloren-docker
rules: rules:
- if: $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ || $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: manual - when: manual
allow_failure: true allow_failure: true