Skip to content

Commit 8186b1e

Browse files
anpilogmartinweismann
authored andcommitted
Export GO environment variables properly
Make GOARCH, GOOS and GOARM environment visible to `go` compiler
1 parent 8cdae44 commit 8186b1e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Build/build.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ basepath="$(cd "$(dirname "$0")" && pwd)"
1010
cd "$basepath/../Source"
1111

1212
Sources="actutils.go automaticcomponenttoolkit.go buildbindingccpp.go buildbindingcsharp.go buildbindinggo.go buildbindingnode.go buildbindingpascal.go buildbindingpython.go buildbindingjava.go buildimplementationcpp.go buildimplementationpascal.go componentdefinition.go componentdiff.go languagewriter.go languagec.go languagecpp.go languagepascal.go"
13-
GOARCH="amd64"
13+
export GOARCH="amd64"
1414

1515
echo "Build act.exe"
16-
GOOS="windows"
16+
export GOOS="windows"
1717
go build -o ../act.exe $Sources || failed "Error compiling act.exe"
1818

1919
echo "Build act.linux"
20-
GOOS="linux"
20+
export GOOS="linux"
2121
go build -o ../act.linux $Sources || failed "Error compiling act.linux"
2222

2323
echo "Build act.darwin"
24-
GOOS="darwin"
24+
export GOOS="darwin"
2525
go build -o ../act.darwin $Sources || failed "Error compiling act.darwin"
2626

2727
echo "Build act.arm.linux" || failed "Error compiling act.arm.linux"
28-
GOOS="linux"
29-
GOARCH="arm"
30-
GOARM="5"
28+
export GOOS="linux"
29+
export GOARCH="arm"
30+
export GOARM="5"
3131
go build -o ../act.arm.linux $Sources
3232

3333
cd "$startingpath"

0 commit comments

Comments
 (0)