feat: add rust cli plan
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -16,7 +16,13 @@ async fn main() -> eyre::Result<()> {
|
|||||||
let service = &RustService::from(client.clone())
|
let service = &RustService::from(client.clone())
|
||||||
.with_arch(Architecture::Amd64)
|
.with_arch(Architecture::Amd64)
|
||||||
.with_os(Os::Linux)
|
.with_os(Os::Linux)
|
||||||
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev", "protobuf-compiler"])
|
.with_apt(&[
|
||||||
|
"libssl-dev",
|
||||||
|
"libz-dev",
|
||||||
|
"libpq-dev",
|
||||||
|
"protobuf-compiler",
|
||||||
|
"cmake",
|
||||||
|
])
|
||||||
.with_apt_release(&["libssl-dev", "libz-dev", "libpq-dev"])
|
.with_apt_release(&["libssl-dev", "libz-dev", "libpq-dev"])
|
||||||
.with_cuddle_file(&cuddle_file)
|
.with_cuddle_file(&cuddle_file)
|
||||||
.with_apt_ca_certificates()
|
.with_apt_ca_certificates()
|
||||||
@@ -77,6 +83,17 @@ impl cuddle_ci::ReleaseAction for RustReleaser {
|
|||||||
|
|
||||||
rust_image
|
rust_image
|
||||||
.with_workdir("/mnt/src")
|
.with_workdir("/mnt/src")
|
||||||
|
.with_exec(vec!["apt", "update"])
|
||||||
|
.with_exec(vec![
|
||||||
|
"apt",
|
||||||
|
"install",
|
||||||
|
"-y",
|
||||||
|
"libssl-dev",
|
||||||
|
"libz-dev",
|
||||||
|
"libpq-dev",
|
||||||
|
"protobuf-compiler",
|
||||||
|
"cmake",
|
||||||
|
])
|
||||||
.with_directory("/mnt/src", src)
|
.with_directory("/mnt/src", src)
|
||||||
.with_new_file(
|
.with_new_file(
|
||||||
"/root/.cargo/credentials",
|
"/root/.cargo/credentials",
|
||||||
|
Reference in New Issue
Block a user