Use prebuilt image
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
parent
007f9f9112
commit
6859de9f7d
|
@ -1,5 +1,5 @@
|
||||||
local executableName = 'newsletter-to-web';
|
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 = [
|
local archs = [
|
||||||
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
|
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
|
||||||
|
@ -27,8 +27,6 @@ local add_build_steps() = [
|
||||||
image: build_image,
|
image: build_image,
|
||||||
commands: [
|
commands: [
|
||||||
'echo Hello World from Jsonnet on ' + arch.target + '!',
|
'echo Hello World from Jsonnet on ' + arch.target + '!',
|
||||||
'rustup target add ' + arch.target,
|
|
||||||
'scripts/prepare-build.sh',
|
|
||||||
'cargo zigbuild --release --target ' + arch.target,
|
'cargo zigbuild --release --target ' + arch.target,
|
||||||
'cp target/' + arch.target + '/release/' + builtExecutableName(arch) + ' artifacts/' + targetExecutableName(arch),
|
'cp target/' + arch.target + '/release/' + builtExecutableName(arch) + ' artifacts/' + targetExecutableName(arch),
|
||||||
'rm -rf target/' + arch.target + '/release/*',
|
'rm -rf target/' + arch.target + '/release/*',
|
||||||
|
|
Loading…
Reference in New Issue