Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
f3f4534538
commit
cc34bf6392
3
.cargo/config.toml
Normal file
3
.cargo/config.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[profile.release]
|
||||
lto = "thin"
|
||||
strip = true
|
@ -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;
|
||||
|
42
.drone.yml
42
.drone.yml
@ -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
|
Loading…
Reference in New Issue
Block a user