mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
cross compile without qemu
This commit is contained in:
parent
f824741cb7
commit
624acbf6a5
@ -96,25 +96,25 @@ build:docker-releases:
|
||||
- linux
|
||||
- docker
|
||||
|
||||
build:docker-development:
|
||||
image: jdrouet/docker-with-buildx:stable
|
||||
build:binary-development:
|
||||
image: rust:latest
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
variables:
|
||||
DOCKER_HOST: tcp://docker:2375/
|
||||
DOCKER_DRIVER: overlay2
|
||||
|
||||
before_script:
|
||||
- ''
|
||||
- cat > /cargo/config << EOF
|
||||
[target.armv7-unknown-linux-gnueabihf]
|
||||
linker = "arm-linux-gnueabihf-gcc"
|
||||
EOF
|
||||
- dkpg --add-architecture armhf
|
||||
- apt-get update -yqq
|
||||
- apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
|
||||
- apt-get install -yqq --no-install-recommends capnproto build-essential cmake clang libclang-dev libclang-dev:armhf libgsasl7-dev libgsasl7-dev:armhf
|
||||
- rustup target add armv7-unknown-linux-armeabihf
|
||||
|
||||
script:
|
||||
- docker buildx create --use
|
||||
- docker buildx build
|
||||
--platform linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||
--tag ${CI_REGISTRY_IMAGE}:test
|
||||
--push
|
||||
.
|
||||
- cargo check --target x86_64-unknown-linux-gnu
|
||||
- cargo check --target armv7-unknown-linux-gnueabihf
|
||||
|
||||
# only:
|
||||
# - development
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user