feat: update rust plan
Some checks reported errors
continuous-integration/drone/push Build was killed

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-11-29 23:57:52 +01:00
parent 5b532dfd26
commit 07fc3746d4
6 changed files with 644 additions and 370 deletions

View File

@@ -7,42 +7,45 @@ const BIN_NAME: &str = "cuddle-empty-plan";
#[tokio::main]
async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
dagger_sdk::connect(|client| async move {
let service = &RustService::from(client.clone())
.with_arch(Architecture::Amd64)
.with_os(Os::Linux)
.with_apt(&[
"clang",
"libssl-dev",
"libz-dev",
"libgit2-dev",
"git",
"openssh-client",
])
.with_apt_release(&["git", "openssh-client"])
.with_docker_cli()
.with_cuddle_cli()
.with_kubectl()
.with_apt_ca_certificates()
.with_workspace_crates()
.await
.with_mold("2.3.3")
.with_bin_name(BIN_NAME)
.with_deployment(false)
.with_dagger_bin("0.9.8")
.to_owned();
let service = &RustService::from(client.clone())
.with_arch(Architecture::Amd64)
.with_os(Os::Linux)
.with_apt(&[
"clang",
"libssl-dev",
"libz-dev",
"libgit2-dev",
"git",
"openssh-client",
])
.with_apt_release(&["git", "openssh-client"])
.with_docker_cli()
.with_cuddle_cli()
.with_kubectl()
.with_apt_ca_certificates()
.with_workspace_crates()
.await
.with_mold("2.3.3")
.with_bin_name(BIN_NAME)
.with_deployment(false)
.with_dagger_bin("0.9.8")
.to_owned();
let drone_templater = &DroneTemplater::new(client, "templates/cuddle-empty-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned();
let drone_templater = &DroneTemplater::new(client, "templates/cuddle-empty-plan.yaml")
.with_variable("bin_name", BIN_NAME)
.to_owned();
CuddleCI::default()
.with_pull_request(service)
.with_main(service)
.with_main(drone_templater)
.execute(std::env::args())
.await?;
CuddleCI::default()
.with_pull_request(service)
.with_main(service)
.with_main(drone_templater)
.execute(std::env::args())
.await?;
Ok(())
})
.await?;
Ok(())
}