wasi-module-sdk-go/.buildr/tasks.hcl

54 lines
823 B
HCL
Raw Normal View History

2023-05-24 20:11:05 +00:00
task "script" "buf_generate" {
inline = [
"buf generate --debug"
]
2023-06-29 18:27:27 +00:00
out_dir = repo.root
2023-05-24 20:11:05 +00:00
input_mapping = {
"api" = "api",
"buf.gen.yaml" = "buf.gen.yaml"
"buf.work.yaml" = "buf.work.yaml"
}
container {
image = "docker.io/bufbuild/buf"
}
depends_on = [
tools.vtprotobuf.id
]
}
task "script" "generate_examples_hello_world" {
working_dir = "examples/hello_world_go"
inline = [
"go generate -x ./..."
]
depends_on = [
tasks.buf_generate.id,
tools.mockery.id
]
}
task "script" "generate_sdk" {
inline = [
"go generate -x ./..."
]
depends_on = [
tasks.buf_generate.id,
]
}
task "script" "go_generate" {
inline = [
"/bin/true"
]
depends_on = [
tasks.generate_sdk.id,
tasks.generate_examples_hello_world.id,
]
}