1717 required : false
1818 default : false
1919 type : boolean
20-
2120env :
2221 GOTOOLCHAIN : local
2322
@@ -42,10 +41,11 @@ jobs:
4241 - if : ${{ inputs.canary }}
4342 name : " Init (canary): retrieve GO_VERSION"
4443 run : |
44+ . ./hack/github/action-helpers.sh
4545 latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
4646 printf "GO_VERSION=%s\n" "$latest_go" >> "$GITHUB_ENV"
4747 [ "$latest_go" != "" ] || \
48- echo ":: warning title= No canary go:: There is currently no canary go version to test. Steps will not run."
48+ github::log:: warning " No canary go" " There is currently no canary go version to test. Steps will not run."
4949
5050 - if : ${{ env.GO_VERSION != '' }}
5151 name : " Init: install go"
@@ -56,14 +56,44 @@ jobs:
5656
5757 - if : ${{ env.GO_VERSION != '' }}
5858 name : " Run: make binaries"
59+ id : run
5960 run : |
61+ . ./hack/github/action-helpers.sh
62+
63+ github::md::table::header "OS" "Arch" "Result" "Time" >> $GITHUB_STEP_SUMMARY
64+
65+ failure=
66+
67+ build(){
68+ local goos="$1"
69+ local goarch="${2:-amd64}"
70+ local goarm="${3:-}"
71+ local result
72+
73+ github::timer::begin
74+
75+ GOOS="$goos" GOARCH="$goarch" GOARM="$goarm" make binaries \
76+ && result="$decorator_success" \
77+ || {
78+ failure=true
79+ result="$decorator_failure"
80+ }
81+
82+ [ ! "$goarm" ] || goarch="$goarch/v$goarm"
83+ github::md::table::line "$goos" "$goarch" "$result" "$(github::timer::format <(github::timer::tick))" >> $GITHUB_STEP_SUMMARY
84+ }
85+
6086 # We officially support these
61- GOOS=linux make binaries
62- GOOS=windows make binaries
63- GOOS=freebsd make binaries
64- GOOS=darwin make binaries
65- GOARCH=arm GOARM=6 make binaries
87+ build linux
88+ build linux arm64
89+ build windows
90+ build freebsd
91+ build darwin
92+ build linux arm 6
6693 # These architectures are not released, but we still verify that we can at least compile
67- GOARCH=ppc64le make binaries
68- GOARCH=riscv64 make binaries
69- GOARCH=s390x make binaries
94+ build linux ppc64le
95+ build linux riscv64
96+ build linux s390x
97+
98+ github::md::pie "title" "one" 1 "two" 2 "three" 3 >> $GITHUB_STEP_SUMMARY
99+ [ ! "$failure" ] || exit 1
0 commit comments