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:
- cat > /usr/local/cargo/config << EOF
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
EOF
- cp cargo-cross-cfg /usr/local/cargo/config
- dkpg --add-architecture armhf
- apt-get update -yqq
- apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf