From 47765cb5bd6ef7ed04fb454b2bcc381e860799b9 Mon Sep 17 00:00:00 2001 From: TheMeinerLP Date: Wed, 25 Nov 2026 11:03:24 +0100 Subject: [PATCH] ci: ship the grus cli for windows The process driver now builds on windows, so the grus build no longer skips it. Enable the scoop block that waits for a windows archive, with upload still off until the bucket repository exists. Add a CI step that cross-compiles the cli for windows on every pull request. --- .github/workflows/go.yml | 3 +++ .goreleaser.yaml | 26 +++++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c37530c..f9fbb29 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,6 +39,9 @@ jobs: - name: Build the commands run: go build ./cmd/... + - name: Build the cli for windows + run: GOOS=windows GOARCH=amd64 go build ./cmd/grus ./cmd/grus-stub-server + - name: Keep the Kubernetes client out of the agent run: | if go list -deps ./cmd/grus-agent | grep -q '^k8s.io/'; then diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f6409cc..9672fd3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -21,10 +21,6 @@ builds: - -s -w -X main.version={{ .Version }} goos: [linux, darwin, windows] goarch: [amd64, arm64] - # The controller half of the binary pulls in the process driver, which uses unix process groups - # and does not compile for windows yet. Drop this block once the driver builds there. - ignore: - - goos: windows # The agent runs game servers as local processes on a host; it has no windows build. - id: grus-agent @@ -129,14 +125,14 @@ homebrew_casks: homepage: https://github.com/OneLiteFeatherNET/grus description: Grus game server orchestration command line client -# Scoop needs a windows archive of grus, which does not exist yet (see the ignore rule above). -# Enable this block together with the windows build; upload stays off until the bucket exists. -# scoops: -# - ids: [grus] -# skip_upload: true -# repository: -# owner: OneLiteFeatherNET -# name: scoop-bucket -# homepage: https://github.com/OneLiteFeatherNET/grus -# description: Grus game server orchestration command line client -# license: Apache-2.0 +# Scoop installs the windows archive of grus. Upload stays off until the bucket repository exists. +scoops: + - ids: [grus] + # Remove skip_upload (and give the workflow a token that can push to the bucket) when it exists. + skip_upload: true + repository: + owner: OneLiteFeatherNET + name: scoop-bucket + homepage: https://github.com/OneLiteFeatherNET/grus + description: Grus game server orchestration command line client + license: Apache-2.0