mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-06-27 17:13:31 +00:00
Add windows build step to makefile
This commit is contained in:
parent
561b8fb637
commit
8bc2e6e76b
1 changed files with 9 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -21,12 +21,12 @@ BUILD_OPTS := -v
|
|||
# Set test options
|
||||
TEST_OPTS := -v -race
|
||||
|
||||
.PHONY: all clean test fmt lint vet coverage help
|
||||
.PHONY: all clean test fmt lint vet coverage help build-windows
|
||||
|
||||
# Default target
|
||||
all: lint test build-linux build-linux-arm build-darwin
|
||||
all: lint test build-linux build-linux-arm build-darwin build-windows
|
||||
|
||||
build: clean test build-linux build-linux-arm build-darwin
|
||||
build: clean test build-linux build-linux-arm build-darwin build-windows
|
||||
|
||||
build-linux:
|
||||
mkdir -p $(BUILD_DIR)/linux
|
||||
|
@ -46,6 +46,12 @@ build-darwin:
|
|||
-o $(BUILD_DIR)/darwin/openmcpauthproxy $(PROJECT_ROOT)/cmd/proxy
|
||||
cp config.yaml $(BUILD_DIR)/darwin
|
||||
|
||||
build-windows:
|
||||
mkdir -p $(BUILD_DIR)/windows
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -x -ldflags "-X main.version=$(BUILD_VERSION)" \
|
||||
-o $(BUILD_DIR)/windows/openmcpauthproxy.exe ./cmd/proxy
|
||||
cp config.yaml $(BUILD_DIR)/windows
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
@echo "Cleaning build artifacts..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue