Added cargo build to arm build
This commit is contained in:
parent
84b3047ee0
commit
98025aea4b
|
@ -2,7 +2,6 @@ stages:
|
|||
# - test
|
||||
- ui
|
||||
- build
|
||||
- build-docker
|
||||
- deploy
|
||||
- release
|
||||
|
||||
|
@ -81,6 +80,7 @@ build-arm-bin:
|
|||
- rustup target add armv7-unknown-linux-gnueabihf
|
||||
- apt update
|
||||
- apt-get -y install gcc-arm-linux-gnueabihf
|
||||
- cargo build --target armv7-unknown-linux-gnueabihf --release
|
||||
- cd target/armv7-unknown-linux-gnueabihf/release/
|
||||
- tar -czf ../../../vade-linux-arm.tar.gz vade
|
||||
- cd ../../../
|
||||
|
@ -103,10 +103,10 @@ build-win-bin:
|
|||
paths:
|
||||
- target/release/vade.exe
|
||||
|
||||
build-docker:
|
||||
deploy-dev-docker:
|
||||
dependencies:
|
||||
- build-musl-bin
|
||||
stage: build-docker
|
||||
stage: deploy
|
||||
image: docker:latest
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
|
@ -127,9 +127,12 @@ deploy-binaries:
|
|||
- if: $CI_COMMIT_TAG
|
||||
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-arm.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-musl.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 ./target/release/vade.exe "${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-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-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 ./target/release/vade.exe "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade.exe"'
|
||||
|
||||
release:
|
||||
stage: release
|
||||
|
|
Loading…
Reference in New Issue