Small improvements
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
7bc8c5b967
commit
b5a83988e8
@ -6,7 +6,7 @@ local archs = [
|
||||
{ target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' },
|
||||
];
|
||||
|
||||
local getStepName(arch) = 'build ' + arch.short;
|
||||
local getStepName(arch) = 'Build for ' + arch.short;
|
||||
|
||||
local getExeName(arch) = if std.startsWith(arch.short, 'windows') then '.exe' else '';
|
||||
|
||||
@ -27,8 +27,8 @@ local add_build_steps() = [
|
||||
commands: [
|
||||
'echo Hello World from Jsonnet on ' + arch.target + '!',
|
||||
'cross build --release --target ' + arch.target,
|
||||
'rm -rf target/' + arch.target + '/release/{build,deps,examples,incremental}',
|
||||
'cp target/' + arch.target + '/release/drone-test' + getExeName(arch) + ' artifacts/drone-test-' + arch.short + getExeName(arch),
|
||||
'rm -rf target/' + arch.target + '/release/*',
|
||||
],
|
||||
environment: {
|
||||
CROSS_REMOTE: true,
|
||||
@ -47,7 +47,7 @@ local add_build_steps() = [
|
||||
},
|
||||
steps:
|
||||
[{
|
||||
name: 'wait-for-docker',
|
||||
name: 'Wait for Docker',
|
||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||
commands: [
|
||||
'while ! docker image ls; do sleep 1; done',
|
||||
@ -63,10 +63,9 @@ local add_build_steps() = [
|
||||
add_build_steps() +
|
||||
[
|
||||
{
|
||||
name: 'build',
|
||||
name: 'Show built artifacts',
|
||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||
commands: [
|
||||
'ls -lah target/',
|
||||
'ls -lah artifacts',
|
||||
],
|
||||
depends_on: [getStepName(a) for a in archs],
|
||||
|
Loading…
Reference in New Issue
Block a user