Remove unnecessary function buildForArch()

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-09-07 22:10:29 +02:00
parent a427e41bd5
commit 6bdd545cec

View File

@ -6,9 +6,10 @@ local archs = [
{ target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' }, { target: 'x86_64-unknown-linux-musl', short: 'amd64-musl' },
]; ];
local getStepName(arch) = 'check ' + arch.short; local getStepName(arch) = 'build ' + arch.short;
local buildForArch(arch) = { local add_build_steps() = [
{
name: getStepName(arch), name: getStepName(arch),
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim', image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
volumes: [ volumes: [
@ -31,11 +32,8 @@ local buildForArch(arch) = {
CROSS_REMOTE: true, CROSS_REMOTE: true,
}, },
depends_on: ['wait-for-docker'], depends_on: ['wait-for-docker'],
}; }
for arch in archs
local check_steps() = [
buildForArch(a)
for a in archs
]; ];
{ {
@ -60,7 +58,7 @@ local check_steps() = [
path: '/var/run', path: '/var/run',
}], }],
}] + }] +
check_steps() + add_build_steps() +
[ [
{ {
name: 'build', name: 'build',