Skip to content
Closed
Show file tree
Hide file tree
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
20 changes: 20 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Puku cross-compiles for Windows without change, but nothing had run its tests there. Paths it
# writes into BUILD files and the go.mod edits it makes are where Windows would differ.
name: Windows

on:
push:
branches:
- windows
pull_request:

jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Test
run: go test ./...
7 changes: 7 additions & 0 deletions .plzconfig_windows_amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Layered on .plzconfig for windows_amd64 builds.

[Plugin "go"]
; go-flags treats a leading / as an option on Windows, so `plz puku fmt //src/hello` failed with
; "unknown flag `/src/hello'". forceposix turns that off, as Please itself does for the same
; reason: every build label starts with //.
BuildTags = forceposix
3 changes: 3 additions & 0 deletions package/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ architectures = [
"freebsd_amd64",
"linux_amd64",
"linux_arm64",
# Published only from the PeterNeiss fork, for Please's Windows port: the Puku codelab
# downloads puku-<version>-<os>_<arch>, and upstream publishes no Windows build.
"windows_amd64",
]

def cross_compile(version, arch):
Expand Down