mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-26 00:42:42 +01:00
chore: fix tasks
This commit is contained in:
parent
7133bfae95
commit
e642778d90
@ -2,3 +2,42 @@
|
|||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["run", "-p", "ci", "--", "codegen"]
|
args = ["run", "-p", "ci", "--", "codegen"]
|
||||||
workspace = false
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.build]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["run", "-p", "ci", "--", "ci"]
|
||||||
|
dependencies = ["codegen"]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.fmt]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["fmt", "--all"]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.fix]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["fix", "--workspace", "--allow-dirty"]
|
||||||
|
dependencies = ["fmt"]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.release_crate]
|
||||||
|
command = "cargo"
|
||||||
|
args = [
|
||||||
|
"smart-release",
|
||||||
|
"--allow-fully-generated-changelogs",
|
||||||
|
"--update-crates-index",
|
||||||
|
"dagger-sdk",
|
||||||
|
]
|
||||||
|
dependencies = ["codegen", "fix"]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.release_crate_commit]
|
||||||
|
command = "cargo"
|
||||||
|
args = [
|
||||||
|
"smart-release",
|
||||||
|
"-e",
|
||||||
|
"--allow-fully-generated-changelogs",
|
||||||
|
"--update-crates-index",
|
||||||
|
"dagger-sdk",
|
||||||
|
]
|
||||||
|
workspace = false
|
||||||
|
@ -55,6 +55,7 @@ async fn run_codegen(client: Arc<Query>, _subm: &ArgMatches) -> eyre::Result<()>
|
|||||||
])
|
])
|
||||||
.with_exec(vec!["cargo", "fmt", "--all"])
|
.with_exec(vec!["cargo", "fmt", "--all"])
|
||||||
.with_exec(vec!["cargo", "fix", "--workspace", "--allow-dirty"])
|
.with_exec(vec!["cargo", "fix", "--workspace", "--allow-dirty"])
|
||||||
|
.with_exec(vec!["cargo", "fmt", "--all"])
|
||||||
.with_exec(vec!["mv", "crates/dagger-sdk/gen.rs", "/mnt/output/gen.rs"]);
|
.with_exec(vec!["mv", "crates/dagger-sdk/gen.rs", "/mnt/output/gen.rs"]);
|
||||||
|
|
||||||
let _ = generated_image.exit_code().await?;
|
let _ = generated_image.exit_code().await?;
|
||||||
|
@ -22,13 +22,13 @@ pub struct SecretId(String);
|
|||||||
pub struct SocketId(String);
|
pub struct SocketId(String);
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||||
pub struct BuildArg {
|
pub struct BuildArg {
|
||||||
pub name: String,
|
|
||||||
pub value: String,
|
pub value: String,
|
||||||
|
pub name: String,
|
||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||||
pub struct PipelineLabel {
|
pub struct PipelineLabel {
|
||||||
pub value: String,
|
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
pub value: String,
|
||||||
}
|
}
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct CacheVolume {
|
pub struct CacheVolume {
|
||||||
@ -2764,12 +2764,12 @@ impl Socket {
|
|||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
||||||
pub enum CacheSharingMode {
|
pub enum CacheSharingMode {
|
||||||
|
PRIVATE,
|
||||||
LOCKED,
|
LOCKED,
|
||||||
SHARED,
|
SHARED,
|
||||||
PRIVATE,
|
|
||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
||||||
pub enum NetworkProtocol {
|
pub enum NetworkProtocol {
|
||||||
TCP,
|
|
||||||
UDP,
|
UDP,
|
||||||
|
TCP,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user