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

Update .gitlab-ci.yml file

parent 5fd3791a
No related branches found
No related tags found
No related merge requests found
...@@ -29,13 +29,19 @@ build:armhflinux: ...@@ -29,13 +29,19 @@ build:armhflinux:
paths: paths:
- target/ - target/
before_script: before_script:
- dpkg --add-architecture armhf && apt-get update && apt-get install -y openssl:armhf libssl-dev:armhf - 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 - rustup target add arm-unknown-linux-gnueabihf
- git clone --depth=1 https://github.com/raspberrypi/tools raspberrypi-tools - git clone --depth=1 https://github.com/raspberrypi/tools raspberrypi-tools
- mkdir .cargo && touch .cargo/config.toml - mkdir .cargo && touch .cargo/config.toml
- echo "[target.arm-unknown-linux-gnueabihf]" >> .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 - echo "linker = \"$(pwd)/raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc\"" >> .cargo/config.toml
script: 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 - cargo build --release --target=arm-unknown-linux-gnueabihf
artifacts: artifacts:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment