Skip to content

Commit 853af3d

Browse files
committed
Update GitHub Actions workflow to conditionally build mcpproxy binary for Windows and Unix-like systems
1 parent 1451d9c commit 853af3d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
shell: bash
4444
run: |
4545
VERSION=pr-${{ github.event.number }}-${{ github.sha }}
46-
go build -tags nogui -ldflags "-X main.version=${VERSION}" -o mcpproxy ./cmd/mcpproxy
46+
if [[ "${{ runner.os }}" == "Windows" ]]; then
47+
go build -tags nogui -ldflags "-X main.version=${VERSION}" -o mcpproxy.exe ./cmd/mcpproxy
48+
else
49+
go build -tags nogui -ldflags "-X main.version=${VERSION}" -o mcpproxy ./cmd/mcpproxy
50+
fi
4751
4852
- name: Test version output
4953
shell: bash

0 commit comments

Comments
 (0)