Testing binary upload
This commit is contained in:
parent
92749fcfa2
commit
13eaedcf59
|
@ -37,8 +37,8 @@ build-x64-bin:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -y install libssl-dev pkg-config
|
- apt-get -y install libssl-dev pkg-config
|
||||||
|
@ -58,6 +58,8 @@ build-musl-bin:
|
||||||
stage: build
|
stage: build
|
||||||
image: 'rust:latest'
|
image: 'rust:latest'
|
||||||
script:
|
script:
|
||||||
|
# rules:
|
||||||
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
- rustup target add x86_64-unknown-linux-musl
|
- rustup target add x86_64-unknown-linux-musl
|
||||||
- apt update && apt install -y musl-tools musl-dev
|
- apt update && apt install -y musl-tools musl-dev
|
||||||
- update-ca-certificates
|
- update-ca-certificates
|
||||||
|
@ -75,8 +77,8 @@ build-arm-bin:
|
||||||
- build-ui
|
- build-ui
|
||||||
stage: build
|
stage: build
|
||||||
image: 'rust:latest'
|
image: 'rust:latest'
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
script:
|
script:
|
||||||
- rustup target add armv7-unknown-linux-gnueabihf
|
- rustup target add armv7-unknown-linux-gnueabihf
|
||||||
- apt update
|
- apt update
|
||||||
|
@ -96,8 +98,8 @@ build-win-bin:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- windows
|
- windows
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -124,16 +126,16 @@ deploy-binaries:
|
||||||
- build-win-bin
|
- build-win-bin
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
script:
|
script:
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-x64.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-x64-$CI_COMMIT_TAG.tar.gz"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-x64.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/v0.1.0/vade-linux-x64-v0.1.0.tar.gz"'
|
||||||
|
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-arm.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-arm-$CI_COMMIT_TAG.tar.gz"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-arm.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/v0.1.0/vade-linux-arm-v0.1.0.tar.gz"'
|
||||||
|
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-musl.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-musl-$CI_COMMIT_TAG.tar.gz"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./vade-linux-musl.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/v0.1.0/vade-linux-musl-v0.1.0.tar.gz"'
|
||||||
|
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./target/release/vade.exe "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade.exe"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./target/release/vade.exe "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/v0.1.0/vade.exe"'
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
|
|
Loading…
Reference in New Issue