Skip to content
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
5 changes: 3 additions & 2 deletions backend/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DATE := if os_family() == 'windows' {
`date -u +%Y-%m-%dT%H:%M:%SZ`
}
LDFLAGS := "-s -w -X github.com/OrcaCD/orca-cd/internal/version.Version=" + VERSION + " -X github.com/OrcaCD/orca-cd/internal/version.Commit=" + COMMIT + " -X github.com/OrcaCD/orca-cd/internal/version.BuildDate=" + DATE
EXT := if os_family() == 'windows' { '.exe' } else { '' }
defaultCommand := ""

# List all available commands
Expand Down Expand Up @@ -56,13 +57,13 @@ test-coverage:
[group('hub')]
[env("CGO_ENABLED", "1")]
build-hub: proto
go build -ldflags '{{ LDFLAGS }}' -o bin/hub ./cmd/hub
go build -ldflags '{{ LDFLAGS }}' -o bin/hub{{ EXT }} ./cmd/hub

# Build the agent binary to bin/agent
[group('agent')]
[env("CGO_ENABLED", "1")]
build-agent: proto
go build -ldflags '{{ LDFLAGS }}' -o bin/agent ./cmd/agent
go build -ldflags '{{ LDFLAGS }}' -o bin/agent{{ EXT }} ./cmd/agent

# Build both hub and agent binaries in parallel
[parallel]
Expand Down