added cargo config for cross compiling

This commit is contained in:
Kai Kriegel 2021-12-14 15:34:14 +01:00
parent 664567465d
commit 160f573312

View File

@ -101,10 +101,7 @@ build:binary-development:
before_script: before_script:
- cat > /usr/local/cargo/config << EOF - cp cargo-cross-cfg /usr/local/cargo/config
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
EOF
- dkpg --add-architecture armhf - dkpg --add-architecture armhf
- apt-get update -yqq - apt-get update -yqq
- apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf - apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf