aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-09-01 08:35:30 +0200
committerJakob Borg <jakob@kastelo.net>2023-09-01 09:16:14 +0200
commit4bf982376ea2e83677897cbcfa705ebb50a563b1 (patch)
treef86ebe2961bb6b00357b159f5b0d4da041ee184f
parent29056d587361650a5ca68afd427a8b0c91e8305c (diff)
downloadsyncthing-4bf982376ea2e83677897cbcfa705ebb50a563b1.tar.gz
syncthing-4bf982376ea2e83677897cbcfa705ebb50a563b1.zip
build: Be more subtle about cross compilation errors
Summarize platforms that fail to build, without overloading the build log with errors that we anyway ignore. (Currently freebsd/riscv64 fails to build.)
-rw-r--r--.github/workflows/build-syncthing.yaml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index c198c38dc..ecb11fd87 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -393,12 +393,18 @@ jobs:
| grep -v /wasm \
)
+ # Build for each platform with errors silenced, because we expect
+ # some oddball platforms to fail. This avoids a bunch of errors in
+ # the GitHub Actions output, instead summarizing each build
+ # failure as a warning.
for plat in $platforms; do
goos="${plat%/*}"
goarch="${plat#*/}"
- if ! go run build.go -goos "$goos" -goarch "$goarch" tar ; then
- echo "*** $plat failed ***"
+ echo "::group ::$plat"
+ if ! go run build.go -goos "$goos" -goarch "$goarch" tar 2>/dev/null; then
+ echo "::warning ::Failed to build for $plat"
fi
+ echo "::endgroup::"
done
env:
CGO_ENABLED: "0"