File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 15
15
/dist /
16
16
17
17
main
18
+ tmp
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ mkdir -p tmp
5
+
6
+ readonly systems=( windows linux darwin )
7
+ readonly archs=( amd64 arm64 )
8
+
9
+ for system in " ${systems[@]} " ; do
10
+ for arch in " ${archs[@]} " ; do
11
+ if [ " $system " == " windows" ] && [ " $arch " == " arm64" ]; then
12
+ echo " windows/arm64 not yet supported by tinygo"
13
+ continue
14
+ fi
15
+ echo " building $system /$arch "
16
+ # GOOS=${system} GOARCH=${arch} tinygo build -o tmp/"${system}_${arch}" cmd/epoch/main.go
17
+ docker run --rm -w /src -v " $( pwd) " :/src -e GOOS=" ${system} " -e GOARCH=" ${arch} " tinygo/tinygo tinygo build -o " tmp/${system} _${arch} " cmd/epoch/main.go
18
+ done
19
+ done
You can’t perform that action at this time.
0 commit comments