mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Different Jobs now have different target directorys, as cargo
seems to have some weird behavior, see more in MR25 of veloren-docker-ci:
https://gitlab.com/veloren/veloren-docker-ci/-/merge_requests/25
This commit is contained in:
parent
6d1ec73b47
commit
dcea5776c1
@ -33,8 +33,6 @@ before_script:
|
|||||||
- export DISABLE_GIT_LFS_CHECK=true
|
- export DISABLE_GIT_LFS_CHECK=true
|
||||||
- export VELOREN_ASSETS="$(pwd)/assets"
|
- export VELOREN_ASSETS="$(pwd)/assets"
|
||||||
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
|
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
|
||||||
- rm -r target || echo "target doesnt exist, which is fine"
|
|
||||||
- ln -s /dockercache/veloren/target target
|
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
unittests:
|
unittests:
|
||||||
<<: *tests
|
<<: *tests
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo test
|
- cargo test
|
||||||
retry:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
@ -15,6 +16,7 @@ coverage:
|
|||||||
<<: *tests
|
<<: *tests
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-tarpaulin target
|
||||||
- cargo tarpaulin -v
|
- cargo tarpaulin -v
|
||||||
retry:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
@ -23,6 +25,7 @@ benchmarks:
|
|||||||
<<: *tests
|
<<: *tests
|
||||||
script:
|
script:
|
||||||
- unset DISABLE_GIT_LFS_CHECK
|
- unset DISABLE_GIT_LFS_CHECK
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo bench
|
- cargo bench
|
||||||
retry:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
@ -33,6 +36,7 @@ localization-status:
|
|||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo test -q test_all_localizations -- --nocapture --ignored
|
- cargo test -q test_all_localizations -- --nocapture --ignored
|
||||||
|
|
||||||
# Artifacts
|
# Artifacts
|
||||||
@ -45,6 +49,7 @@ localization-status:
|
|||||||
linux:
|
linux:
|
||||||
<<: *artifact
|
<<: *artifact
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-release-linux target
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cp -r target/release/veloren-server-cli $CI_PROJECT_DIR
|
- cp -r target/release/veloren-server-cli $CI_PROJECT_DIR
|
||||||
- cp -r target/release/veloren-voxygen $CI_PROJECT_DIR
|
- cp -r target/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
@ -61,6 +66,7 @@ linux:
|
|||||||
windows:
|
windows:
|
||||||
<<: *artifact
|
<<: *artifact
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-release-windows target
|
||||||
- cargo build --target=x86_64-pc-windows-gnu --release
|
- cargo build --target=x86_64-pc-windows-gnu --release
|
||||||
- cp -r target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe $CI_PROJECT_DIR
|
- cp -r target/x86_64-pc-windows-gnu/release/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/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
||||||
@ -75,6 +81,7 @@ windows:
|
|||||||
macos:
|
macos:
|
||||||
<<: *artifact
|
<<: *artifact
|
||||||
script:
|
script:
|
||||||
|
- 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 --release
|
||||||
- cp -r target/x86_64-apple-darwin/release/veloren-server-cli $CI_PROJECT_DIR
|
- 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
|
- cp -r target/x86_64-apple-darwin/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
|
@ -4,6 +4,7 @@ check:
|
|||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- RUSTFLAGS="-D warnings" cargo check --locked
|
- RUSTFLAGS="-D warnings" cargo check --locked
|
||||||
|
|
||||||
code-quality:
|
code-quality:
|
||||||
@ -12,6 +13,7 @@ code-quality:
|
|||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo clippy -- --warn clippy::all
|
- cargo clippy -- --warn clippy::all
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
@ -22,4 +24,5 @@ security:
|
|||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-all target
|
||||||
- cargo audit
|
- cargo audit
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
optional-release:linux:
|
optional-release:linux:
|
||||||
<<: *optional-release
|
<<: *optional-release
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-release-linux target
|
||||||
- cargo build --verbose --release
|
- cargo build --verbose --release
|
||||||
- cp target/release/veloren-server-cli $CI_PROJECT_DIR
|
- cp target/release/veloren-server-cli $CI_PROJECT_DIR
|
||||||
- cp target/release/veloren-voxygen $CI_PROJECT_DIR
|
- cp target/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
@ -25,6 +26,7 @@ optional-release:linux:
|
|||||||
optional-release:windows:
|
optional-release:windows:
|
||||||
<<: *optional-release
|
<<: *optional-release
|
||||||
script:
|
script:
|
||||||
|
- ln -s /dockercache/cache-release-windows target
|
||||||
- cargo build --verbose --target=x86_64-pc-windows-gnu --release
|
- 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-server-cli.exe $CI_PROJECT_DIR
|
||||||
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
||||||
@ -39,6 +41,7 @@ optional-release:windows:
|
|||||||
optional-release:macos:
|
optional-release:macos:
|
||||||
<<: *optional-release
|
<<: *optional-release
|
||||||
script:
|
script:
|
||||||
|
- 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 --release
|
||||||
- cp -r target/x86_64-apple-darwin/release/veloren-server-cli $CI_PROJECT_DIR
|
- 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
|
- cp -r target/x86_64-apple-darwin/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user