Use prebuilt image
continuous-integration/drone/push Build is passing Details

Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
Jacob Kiers 2023-06-10 15:25:14 +02:00
parent 007f9f9112
commit 6859de9f7d
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,5 @@
local executableName = 'newsletter-to-web';
local build_image = 'rust:1.70';
local build_image = 'img.kie.rs/jjkiers/rust-cross:rust1.70-zig';
local archs = [
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
@ -27,8 +27,6 @@ local add_build_steps() = [
image: build_image,
commands: [
'echo Hello World from Jsonnet on ' + arch.target + '!',
'rustup target add ' + arch.target,
'scripts/prepare-build.sh',
'cargo zigbuild --release --target ' + arch.target,
'cp target/' + arch.target + '/release/' + builtExecutableName(arch) + ' artifacts/' + targetExecutableName(arch),
'rm -rf target/' + arch.target + '/release/*',