File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 - name : Tidy, test, and build
2020 run : make tidy test build
2121
22+ - name : Static release build guard
23+ run : |
24+ set -euo pipefail
25+ for target in linux/amd64 linux/arm64 windows/amd64 windows/arm64; do
26+ goos="${target%/*}"
27+ goarch="${target#*/}"
28+ CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" \
29+ go build -o "$RUNNER_TEMP/gro-$goos-$goarch" ./cmd/gro
30+ done
31+
32+ for goarch in amd64 arm64; do
33+ deps=$(CGO_ENABLED=0 GOOS=linux GOARCH="$goarch" go list -deps ./cmd/gro)
34+ if printf '%s\n' "$deps" | grep -E '^(github.com/byteness/keyring|github.com/1password/onepassword-sdk-go)(/|$)'; then
35+ echo "static Linux $goarch build graph must not include byteness/keyring or onepassword-sdk-go"
36+ exit 1
37+ fi
38+ done
39+
2240 - name : Coverage gate
2341 run : make test-cover-check
2442
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
77 github.com/charmbracelet/huh v0.8.0
88 github.com/charmbracelet/lipgloss v1.1.0
99 github.com/muesli/termenv v0.16.0
10- github.com/open-cli-collective/cli-common v0.2.1
10+ github.com/open-cli-collective/cli-common v0.2.2
1111 github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
1212 github.com/spf13/cobra v1.8.0
1313 github.com/yuin/goldmark v1.8.2
Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3
128128github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e /go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno =
129129github.com/noamcohen97/touchid-go v0.3.0 h1:fcXxVCizysD7KHRR6hrURt3nyNIs5JBGSbOIidD/3wo =
130130github.com/noamcohen97/touchid-go v0.3.0 /go.mod h1:X9MRNIBGEmPqwpDm1G3fQOAQX7fwBlhzUbnkDTxuta0 =
131- github.com/open-cli-collective/cli-common v0.2.1 h1:awnwmDD9ubGUmYLg+SGkPGzbiraJsJb/eMWWTV4fwPI =
132- github.com/open-cli-collective/cli-common v0.2.1 /go.mod h1:SVYUmomKzKPrEluJiV1KZc1qnujW5zOKc0mJf0fcm6M =
131+ github.com/open-cli-collective/cli-common v0.2.2 h1:m5Uzvw5ya/Xljgn54wuCiVP4zXE9BZKikpQBqrXLCKg =
132+ github.com/open-cli-collective/cli-common v0.2.2 /go.mod h1:nXAwJcuAo5+bMUD2soABKDwy2o27snBggS6/OTKQgvQ =
133133github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs =
134134github.com/opentracing/opentracing-go v1.2.0 /go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc =
135135github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ =
You can’t perform that action at this time.
0 commit comments