Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
eb9d8c58f5
commit
a866a5ada2
@ -1,12 +1,12 @@
|
|||||||
local archs = [
|
local archs = [
|
||||||
'aarch64-unknown-linux-gnu',
|
{ target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' },
|
||||||
'aarch64-unknown-linux-musl',
|
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
|
||||||
'x86_64-pc-windows-gnu',
|
{ target: 'x86_64-pc-windows-gnu', short: 'windows-amd64' },
|
||||||
'x86_64-unknown-linux-gnu',
|
{ target: 'x86_64-unknown-linux-gnu', short: 'amd64-gnu' },
|
||||||
'x86_64-unknown-linux-musl',
|
{ target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' },
|
||||||
];
|
];
|
||||||
|
|
||||||
local getStepName(arch) = 'check ' + arch;
|
local getStepName(arch) = 'check ' + arch.short;
|
||||||
|
|
||||||
local buildForArch(arch) = {
|
local buildForArch(arch) = {
|
||||||
name: getStepName(arch),
|
name: getStepName(arch),
|
||||||
@ -22,10 +22,10 @@ local buildForArch(arch) = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
commands: [
|
commands: [
|
||||||
'echo Hello World from Jsonnet on ' + arch + '!',
|
'echo Hello World from Jsonnet on ' + arch.target + '!',
|
||||||
'cross build --release --target ' + arch,
|
'cross build --release --target ' + arch.target,
|
||||||
'rm -rf target/' + arch + '/release/{build,deps,examples,incremental}',
|
'rm -rf target/' + arch.target + '/release/{build,deps,examples,incremental}',
|
||||||
'ls -lah target/' + arch + '/release',
|
'cp target/' + arch.target + '/release/drone-test artifacts/drone-test-' + arch.short,
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
CROSS_REMOTE: true,
|
CROSS_REMOTE: true,
|
||||||
@ -53,6 +53,7 @@ local check_steps() = [
|
|||||||
'while ! docker image ls; do sleep 1; done',
|
'while ! docker image ls; do sleep 1; done',
|
||||||
'docker info',
|
'docker info',
|
||||||
'docker pull hello-world:latest',
|
'docker pull hello-world:latest',
|
||||||
|
'mkdir artifacts',
|
||||||
],
|
],
|
||||||
volumes: [{
|
volumes: [{
|
||||||
name: 'dockersock',
|
name: 'dockersock',
|
||||||
@ -66,6 +67,7 @@ local check_steps() = [
|
|||||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||||
commands: [
|
commands: [
|
||||||
'ls -lah target/',
|
'ls -lah target/',
|
||||||
|
'ls -lah artifacts',
|
||||||
],
|
],
|
||||||
depends_on: [getStepName(a) for a in archs],
|
depends_on: [getStepName(a) for a in archs],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user