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

Update .gitlab-ci.yml file

parent 2a1a07fc
Branches
Tags
No related merge requests found
Pipeline #140324 failed
......@@ -27,34 +27,6 @@ build:x86_64linux:
paths:
- target/x86_64-unknown-linux-gnu/release/amd-scrapper
build:armhflinux:
rules:
- if: $CI_COMMIT_TAG
stage: build
image: rust:1-buster
cache:
key: armhflinux
paths:
- target/
before_script:
- dpkg --add-architecture armhf && apt-get update && apt-get install -y openssl:armhf libssl-dev:armhf pkg-config:armhf
- rustup target add arm-unknown-linux-gnueabihf
- git clone --depth=1 https://github.com/raspberrypi/tools raspberrypi-tools
- mkdir .cargo && touch .cargo/config.toml
- echo "[target.arm-unknown-linux-gnueabihf]" >> .cargo/config.toml
- echo "linker = \"$(pwd)/raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc\"" >> .cargo/config.toml
script:
- export SYSROOT=/usr/arm-linux-gnueabihf
- export PKG_CONFIG_ALLOW_CROSS=1
- export PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
- export PKG_CONFIG_SYSROOT_DIR=${SYSROOT}
- export PKG_CONFIG_SYSTEM_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf
- export PKG_CONFIG_SYSTEM_INCLUDE_PATH=/usr/arm-linux-gnueabihf/include
- cargo build --release --target=arm-unknown-linux-gnueabihf
artifacts:
paths:
- target/arm-unknown-linux-gnueabihf/release/amd-scrapper
binary:
rules:
......@@ -66,7 +38,6 @@ binary:
image: curlimages/curl:latest
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./target/x86_64-unknown-linux-gnu/release/amd-scrapper "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/amd_scraper-${CI_COMMIT_TAG}/${CI_COMMIT_TAG}/amd-scrapper-linux-x86_64-glibc"'
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./target/arm-unknown-linux-gnueabihf/release/amd-scrapper "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/amd_scraper-${CI_COMMIT_TAG}/${CI_COMMIT_TAG}/amd-scrapper-linux-arm-gnueabihf"'
container:
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment