Skip to content
Snippets Groups Projects
Commit d8366dfb authored by Marvin Weiler's avatar Marvin Weiler
Browse files

Update .gitlab-ci.yml file added more targets to the build

parent dca9b97b
No related branches found
No related tags found
No related merge requests found
......@@ -3,18 +3,35 @@ stages:
- distribute
build:
rules:
- if: $CI_COMMIT_TAG
stage: build
image: rust:1-buster
script:
- cargo build --release
- cargo build --release --target=x86_64-unknown-linux-gnu
- cargo build --release --target=x86_64-pc-windows-gnu
- cargo build --release --target=x86_64-apple-darwin
- cargo build --release --target=aarch64-unknown-linux-gnu
- cargo build --release --target=i686-unknown-linux-gnu
- cargo build --release --target=i686-pc-windows-gnu
- cargo build --release --target=armv7-unknown-linux-gnueabihf
artifacts:
paths:
- target/release/amd-scrapper
- target/
binary:
rules:
- if: $CI_COMMIT_TAG
stage: distribute
dependencies:
- build
image: curlimages/curl:latest
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./target/release/amd-scrapper "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/my_package/${$CI_COMMIT_TAG}/amd-scrapper"'
container:
rules:
- if: $CI_COMMIT_TAG
stage: distribute
dependencies:
- build
......@@ -29,5 +46,4 @@ container:
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
rules:
- if: $CI_COMMIT_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment