File tree Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- failed () {
4- echo " ${1} " 1>&2
5- exit 1;
6- }
3+ set -euxo pipefail
74
85startingpath=" $( pwd) "
96basepath=" $( cd " $( dirname " $0 " ) " && pwd) "
107cd " $basepath /../Source"
118
129Sources=" actutils.go automaticcomponenttoolkit.go buildbindingccpp.go buildbindingccppdocumentation.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"
10+
11+ echo " Build act.win64.exe"
1312export GOARCH=" amd64"
13+ export GOOS=" windows"
14+ go build -o ../act.win64.exe $Sources
1415
15- echo " Build act.exe"
16+ echo " Build act.win32.exe"
17+ export GOARCH=" 386"
1618export GOOS=" windows"
17- go build -o ../act.exe $Sources || failed " Error compiling act.exe"
19+ go build -o ../act.win32.exe $Sources
20+
21+ echo " Build act.linux64"
22+ export GOOS=" linux"
23+ export GOARCH=" amd64"
24+ go build -o ../act.linux64 $Sources
1825
19- echo " Build act.linux "
26+ echo " Build act.linux32 "
2027export GOOS=" linux"
21- go build -o ../act.linux $Sources || failed " Error compiling act.linux"
28+ export GOARCH=" 386"
29+ go build -o ../act.linux32 $Sources
2230
2331echo " Build act.darwin"
2432export GOOS=" darwin"
25- go build -o ../act.darwin $Sources || failed " Error compiling act.darwin"
33+ export GOARCH=" amd64"
34+ go build -o ../act.darwin $Sources
2635
2736echo " Build act.arm.darwin"
2837export GOOS=" darwin"
2938export GOARCH=" arm64"
30- go build -o ../act.arm.darwin $Sources || failed " Error compiling act.arm.darwin "
39+ go build -o ../act.arm.darwin $Sources
3140
32- echo " Build act.arm.linux " || failed " Error compiling act. arm.linux "
41+ echo " Build act.linux32. arm"
3342export GOOS=" linux"
34- export GOARCH=" arm"
3543export GOARM=" 5"
36- go build -o ../act.arm.linux $Sources
44+ export GOARCH=" 386"
45+ go build -o ../act.linux32.arm $Sources
46+
47+ echo " Build act.linux64.arm"
48+ export GOOS=" linux"
49+ export GOARCH=" arm64"
50+ export GOARM=" 5"
51+ go build -o ../act.linux64.arm $Sources
3752
3853cd " $startingpath "
You can’t perform that action at this time.
0 commit comments