-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·55 lines (43 loc) · 1.49 KB
/
build.sh
File metadata and controls
executable file
·55 lines (43 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
set -euxo pipefail
startingpath="$(pwd)"
basepath="$(cd "$(dirname "$0")" && pwd)"
cd "$basepath/../Source"
Sources="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 buildimplementationjs.go buildimplementationts.go"
echo "Build act.win64.exe"
export GOARCH="amd64"
export GOOS="windows"
go build -o ../act.win64.exe $Sources
echo "Build act.win32.exe"
export GOARCH="386"
export GOOS="windows"
go build -o ../act.win32.exe $Sources
echo "Build act.linux64"
export GOOS="linux"
export GOARCH="amd64"
go build -o ../act.linux64 $Sources
cp ../act.linux64 ../act.linux
echo "Build act.linux32"
export GOOS="linux"
export GOARCH="386"
go build -o ../act.linux32 $Sources
echo "Build act.darwin"
export GOOS="darwin"
export GOARCH="amd64"
go build -o ../act.darwin $Sources
echo "Build act.arm.darwin"
export GOOS="darwin"
export GOARM="5"
export GOARCH="arm64"
go build -o ../act.arm.darwin $Sources
echo "Build act.arm.linux32"
export GOOS="linux"
export GOARM="5"
export GOARCH="386"
go build -o ../act.arm.linux32 $Sources
echo "Build act.arm.linux64"
export GOOS="linux"
export GOARCH="arm64"
export GOARM="5"
go build -o ../act.arm.linux64 $Sources
cd "$startingpath"