Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid building golem-client when generating open-api spec #479

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ description = "Builds everything in debug mode"
command = "cargo"
args = ["build"]

[tasks.build-worker-service]
description = "Builds the worker-service"
command = "cargo"
args = ["build", "-p", "golem-worker-service"]

[tasks.build-component-service]
description = "Builds the component-service"
command = "cargo"
args = ["build", "-p", "golem-component-service"]

[tasks.build-release]
description = """This is the top-level task that builds everything in release mode. PLATFORM_OVERRIDE env variable can be used
to build for other target than the current one, can be linux/amd64 or linux/arm64. This is used for cross-compiling
Expand Down Expand Up @@ -209,12 +219,12 @@ dependencies = [

[tasks.generate-worker-service-openapi]
description = "Generates openapi spec for worker service"
dependencies = ["build"]
dependencies = ["build-worker-service"]
script = "./target/debug/golem-worker-service --dump-openapi-yaml > ./target/golem-worker-service.yaml"

[tasks.generate-component-service-openapi]
description = "Generates openapi spec for component service"
dependencies = ["build"]
dependencies = ["build-component-service"]
script = "./target/debug/golem-component-service --dump-openapi-yaml > ./target/golem-component-service.yaml"

[tasks.merge-openapi]
Expand Down
Loading