File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ DATE := if os_family() == 'windows' {
1717 ` date -u +%Y-%m-%dT%H:%M:%SZ `
1818}
1919LDFLAGS := " -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
20+ EXT := if os_family () == ' windows' { ' .exe' } else { ' ' }
2021defaultCommand := " "
2122
2223# List all available commands
@@ -56,13 +57,13 @@ test-coverage:
5657[group (' hub' )]
5758[env (" CGO_ENABLED" , " 1" )]
5859build-hub : proto
59- go build -ldflags ' {{ LDFLAGS }} ' -o bin/ hub ./ cmd/ hub
60+ go build -ldflags ' {{ LDFLAGS }} ' -o bin/ hub{{ EXT }} ./ cmd/ hub
6061
6162# Build the agent binary to bin/agent
6263[group (' agent' )]
6364[env (" CGO_ENABLED" , " 1" )]
6465build-agent : proto
65- go build -ldflags ' {{ LDFLAGS }} ' -o bin/ agent ./ cmd/ agent
66+ go build -ldflags ' {{ LDFLAGS }} ' -o bin/ agent{{ EXT }} ./ cmd/ agent
6667
6768# Build both hub and agent binaries in parallel
6869[parallel ]
You can’t perform that action at this time.
0 commit comments