Skip to content

Commit 2cac23b

Browse files
author
Steve Powell
committed
Merge 94394746-build-releases to master
[Completes #94394746]
2 parents e20fbd5 + d16188e commit 2cac23b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/buildReleases

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/usr/bin/env bash
22

3+
# buildReleases uses cross-compilation features of the Go compiler to build
4+
# executables for the target platforms we require in the java-buildpack. This
5+
# script assumes that the Go compiler is installed so that all the platforms
6+
# can be targeted. If not this script will exit with a non-zero status.
7+
38
set -e -u
49

510
function build() {
611
local type=$1
712
local target="java-buildpack-memory-calculator-${type}"
813

9-
GOOS=${type} go build -a && mv java-buildpack-memory-calculator ${target}
10-
echo "Built ${target}"
14+
GOOS=${type} go build -a \
15+
&& mv java-buildpack-memory-calculator ${target} \
16+
&& echo "Built ${target}"
1117
}
1218

1319
build linux

0 commit comments

Comments
 (0)