Cache toolchains
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-08-21 00:10:07 +02:00
parent d1f6174f02
commit c8ca2ed86b

View File

@ -11,10 +11,16 @@ local getStepName(arch) = 'check ' + arch;
local buildForArch(arch) = { local buildForArch(arch) = {
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: [
{
name: 'dockersock', name: 'dockersock',
path: '/var/run', path: '/var/run',
}], },
{
name: 'rust-toolchains',
path: '/usr/local/rustup/toolchains',
},
],
commands: [ commands: [
'echo Hello World from Jsonnet on ' + arch + '!', 'echo Hello World from Jsonnet on ' + arch + '!',
'cross build --release --target ' + arch, 'cross build --release --target ' + arch,
@ -92,6 +98,12 @@ local check_steps() = [
path: '/srv/drone/docker-dind-rust', path: '/srv/drone/docker-dind-rust',
}, },
}, },
{
name: 'rust-toolchains',
host: {
path: '/srv/drone/rust-toolchains',
},
},
], ],
image_pull_secrets: ['docker_private_repo'], image_pull_secrets: ['docker_private_repo'],