Speed-up nightly builds workflow by running independent jobs for each platform target

This commit is contained in:
Armel Soro
2023-12-20 23:22:30 +01:00
parent f77efb8ca2
commit 934572a6c8

View File

@@ -83,9 +83,9 @@ jobs:
- name: Cross-compile
run: |
export GITCOMMIT="$(git describe --no-match --always --abbrev=9 --dirty --broken)-nightly"
binName = "odo-$GOOS-$GOARCH"
binName="odo-$GOOS-$GOARCH"
if [ $GOOS == "windows" ]; then
binName = "${binName}.exe"
binName="${binName}.exe"
fi
go build -o "$binName" ./cmd/odo/