Try full cross-platform build
continuous-integration/drone/push Build is failing Details

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-12-16 13:24:30 +01:00
parent f3f4534538
commit cc34bf6392
3 changed files with 8 additions and 47 deletions

3
.cargo/config.toml Normal file
View File

@ -0,0 +1,3 @@
[profile.release]
lto = "thin"
strip = true

View File

@ -1,9 +1,9 @@
local archs = [
// { target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' },
// { target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
// { target: 'x86_64-pc-windows-gnu', short: 'windows-amd64' },
// { target: 'x86_64-unknown-linux-gnu', short: 'amd64-gnu' },
// { target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' },
{ target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' },
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
{ target: 'x86_64-pc-windows-gnu', short: 'windows-amd64' },
{ target: 'x86_64-unknown-linux-gnu', short: 'amd64-gnu' },
{ target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' },
];
local getStepName(arch) = 'Build for ' + arch.short;

View File

@ -1,42 +0,0 @@
---
kind: pipeline
name: default
platfomr:
arch: amd64
steps:
- name: test
image: img.kie.rs/jjkiers/rust-dind-cross:1.62-slim
volumes:
- name: dockersock
path: /var/run
commands:
- cargo check
- while ! docker image ls; do sleep 1; done
- cross build --release --target aarch64-unknown-linux-gnu
- ls -lahR target/
environment:
CROSS_REMOTE: true
# DOCKER_REGISTRY:
# from_secret: docker-registry-url
# DOCKER_USERNAME:
# from_secret: docker-registry-username
# DOCKER_PASSWORD:
# from_secret: docker-registry-password
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
image_pull_secrets:
- docker_private_repo