mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Angelonfira/ci hotfixes arifacts
This commit is contained in:
parent
c48dc1bbe5
commit
f57afdd509
@ -11,9 +11,9 @@ stages:
|
|||||||
before_script:
|
before_script:
|
||||||
- mkdir -p veloren
|
- mkdir -p veloren
|
||||||
- cd veloren
|
- cd veloren
|
||||||
- git lfs install
|
|
||||||
- if [ ! -d ".git" ]; then git clone https://gitlab.com/veloren/veloren.git .; fi
|
- if [ ! -d ".git" ]; then git clone https://gitlab.com/veloren/veloren.git .; fi
|
||||||
- git clean -f
|
- git clean -f
|
||||||
|
- git lfs install
|
||||||
- git lfs fetch
|
- git lfs fetch
|
||||||
- git lfs checkout $CI_COMMIT_SHA
|
- git lfs checkout $CI_COMMIT_SHA
|
||||||
- source $HOME/.cargo/env
|
- source $HOME/.cargo/env
|
||||||
@ -21,6 +21,7 @@ before_script:
|
|||||||
- free -h
|
- free -h
|
||||||
- gcc -v
|
- gcc -v
|
||||||
- cargo --version
|
- cargo --version
|
||||||
|
- export DISABLE_GIT_LFS_CHECK=true
|
||||||
|
|
||||||
# -- optional build
|
# -- optional build
|
||||||
|
|
||||||
@ -31,10 +32,6 @@ before_script:
|
|||||||
except:
|
except:
|
||||||
- schedules
|
- schedules
|
||||||
when: manual
|
when: manual
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- veloren/artifact/*
|
|
||||||
expire_in: 1 week
|
|
||||||
|
|
||||||
optional-debug:linux:
|
optional-debug:linux:
|
||||||
<<: *optional-debug
|
<<: *optional-debug
|
||||||
@ -43,12 +40,17 @@ optional-debug:linux:
|
|||||||
paths:
|
paths:
|
||||||
- veloren/
|
- veloren/
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose && cd ..
|
||||||
- cp target/debug/veloren-server-cli ./artifact
|
- cp target/debug/veloren-server-cli $CI_PROJECT_DIR
|
||||||
- cp target/debug/veloren-voxygen ./artifact
|
- cp target/debug/veloren-voxygen $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli
|
||||||
|
- veloren-voxygen
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
optional-debug:windows:
|
optional-debug:windows:
|
||||||
<<: *optional-debug
|
<<: *optional-debug
|
||||||
@ -57,12 +59,17 @@ optional-debug:windows:
|
|||||||
paths:
|
paths:
|
||||||
- veloren/
|
- veloren/
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu && cd ..
|
||||||
- cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe ./artifact
|
- cp target/x86_64-pc-windows-gnu/debug/veloren-server-cli.exe $CI_PROJECT_DIR
|
||||||
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe ./artifact
|
- cp target/x86_64-pc-windows-gnu/debug/veloren-voxygen.exe $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli.exe
|
||||||
|
- veloren-voxygen.exe
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
.optional-release: &optional-release
|
.optional-release: &optional-release
|
||||||
stage: optional-builds
|
stage: optional-builds
|
||||||
@ -71,10 +78,6 @@ optional-debug:windows:
|
|||||||
except:
|
except:
|
||||||
- schedules
|
- schedules
|
||||||
when: manual
|
when: manual
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- veloren/artifact/*
|
|
||||||
expire_in: 1 week
|
|
||||||
|
|
||||||
optional-release:linux:
|
optional-release:linux:
|
||||||
<<: *optional-release
|
<<: *optional-release
|
||||||
@ -83,12 +86,17 @@ optional-release:linux:
|
|||||||
paths:
|
paths:
|
||||||
- veloren/
|
- veloren/
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --release && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --release && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --release && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --release && cd ..
|
||||||
- cp target/release/veloren-server-cli ./artifact
|
- cp target/release/veloren-server-cli $CI_PROJECT_DIR
|
||||||
- cp target/release/veloren-voxygen ./artifact
|
- cp target/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli
|
||||||
|
- veloren-voxygen
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
optional-release:windows:
|
optional-release:windows:
|
||||||
<<: *optional-release
|
<<: *optional-release
|
||||||
@ -97,12 +105,17 @@ optional-release:windows:
|
|||||||
paths:
|
paths:
|
||||||
- veloren/
|
- veloren/
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu --release && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu --release && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu --release && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --verbose --target=x86_64-pc-windows-gnu --release && cd ..
|
||||||
- cp target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe ./artifact
|
- 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 ./artifact
|
- cp target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli.exe
|
||||||
|
- veloren-voxygen.exe
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
# --
|
# --
|
||||||
|
|
||||||
@ -175,18 +188,20 @@ linux:
|
|||||||
- /^r[0-9]+\.[0-9]+\.[0-9]+/
|
- /^r[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- /^v[0-9]+\.[0-9]+\.[0-9]+/
|
- /^v[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- /^master$/
|
- /^master$/
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- veloren/artifact/*
|
|
||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --release && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --release && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --release && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --release && cd ..
|
||||||
- cp -r target/release/veloren-server-cli ./artifact
|
- cp -r target/release/veloren-server-cli $CI_PROJECT_DIR
|
||||||
- cp -r target/release/veloren-voxygen ./artifact
|
- cp -r target/release/veloren-voxygen $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli
|
||||||
|
- veloren-voxygen
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
stage: post
|
stage: post
|
||||||
@ -201,17 +216,19 @@ windows:
|
|||||||
- /^r[0-9]+\.[0-9]+\.[0-9]+/
|
- /^r[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- /^v[0-9]+\.[0-9]+\.[0-9]+/
|
- /^v[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- /^master$/
|
- /^master$/
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- veloren/artifact/*
|
|
||||||
tags:
|
tags:
|
||||||
- veloren-docker
|
- veloren-docker
|
||||||
script:
|
script:
|
||||||
- mkdir artifact
|
|
||||||
- cd voxygen && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu --release && cd ..
|
- cd voxygen && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu --release && cd ..
|
||||||
- cd server-cli && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu --release && cd ..
|
- cd server-cli && VELOREN_ASSETS=assets cargo build --target=x86_64-pc-windows-gnu --release && cd ..
|
||||||
- cp -r target/x86_64-pc-windows-gnu/release/veloren-server-cli.exe ./artifact
|
- 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 ./artifact
|
- cp -r target/x86_64-pc-windows-gnu/release/veloren-voxygen.exe $CI_PROJECT_DIR
|
||||||
- cp -r assets ./artifact
|
- cp -r assets $CI_PROJECT_DIR
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- veloren-server-cli.exe
|
||||||
|
- veloren-voxygen.exe
|
||||||
|
- assets/
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
# --
|
# --
|
||||||
|
Loading…
x
Reference in New Issue
Block a user