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
|
- linux
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
build:docker-development:
|
build:binary-development:
|
||||||
image: jdrouet/docker-with-buildx:stable
|
image: rust:latest
|
||||||
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
|
|
||||||
variables:
|
|
||||||
DOCKER_HOST: tcp://docker:2375/
|
|
||||||
DOCKER_DRIVER: overlay2
|
|
||||||
|
|
||||||
before_script:
|
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:
|
script:
|
||||||
- docker buildx create --use
|
- cargo check --target x86_64-unknown-linux-gnu
|
||||||
- docker buildx build
|
- cargo check --target armv7-unknown-linux-gnueabihf
|
||||||
--platform linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8
|
|
||||||
--tag ${CI_REGISTRY_IMAGE}:test
|
|
||||||
--push
|
|
||||||
.
|
|
||||||
# only:
|
# only:
|
||||||
# - development
|
# - development
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user