ci: cross-compile for windows

Nothing caught the unix-only constants creeping into weed/mount until a
release build failed.
This commit is contained in:
Chris Lu
2026-08-03 00:50:25 -07:00
parent b2e53d8035
commit bff851e48d
+15
View File
@@ -75,6 +75,21 @@ jobs:
- name: Build
run: cd weed; go build -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v .
build-windows:
name: Build windows
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
# weed/mount builds here but cannot mount yet. Without this the unix-only
# syscall constants it needs creep back in unnoticed.
- name: Build windows/amd64
run: GOOS=windows GOARCH=amd64 go build ./weed/...
test:
name: Test
runs-on: ubuntu-latest