You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build for multiple platforms only in CI, add s390x
Developers should not be forced to build for all platforms by
default. We also don't want to copy-and-paste the go invocation for
each new platform.
To address both, the target platform(s) are now configurable via
BUILD_PLATFORMS and additional platforms are only enabled in the Prow
CI.
For now this serves as a test that the source actually compiles for
multiple platforms. Building images for different target platforms is a
different problem.
Copy file name to clipboardExpand all lines: prow.sh
+3-1
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,8 @@ get_versioned_variable () {
85
85
echo"$value"
86
86
}
87
87
88
+
configvar CSI_PROW_BUILD_PLATFORMS "linux amd64; windows amd64 .exe; linux ppc64le -ppc64le; linux s390x -s390x""Go target platforms (= GOOS + GOARCH) and file suffix of the resulting binaries"
89
+
88
90
# If we have a vendor directory, then use it. We must be careful to only
89
91
# use this for "make" invocations inside the project's repo itself because
90
92
# setting it globally can break other go usages (like "go get <some command>"
@@ -1026,7 +1028,7 @@ main () {
1026
1028
images=
1027
1029
if${CSI_PROW_BUILD_JOB};then
1028
1030
# A successful build is required for testing.
1029
-
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make all "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}"|| die "'make all' failed"
1031
+
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make all "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}""BUILD_PLATFORMS=${CSI_PROW_BUILD_PLATFORMS}"|| die "'make all' failed"
1030
1032
# We don't want test failures to prevent E2E testing below, because the failure
1031
1033
# might have been minor or unavoidable, for example when experimenting with
1032
1034
# changes in "release-tools" in a PR (that fails the "is release-tools unmodified"
0 commit comments