Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 9b6db88

Browse files
committed
Update build script with latest support GOOS+GOARCH combinations
GOOS+GOARCH combinations are from: go tool dist list With the manual removal of linux-riscv64, as that doesn't compile Dio properly yet: # golang.org/x/sys/unix ../vendor/golang.org/x/sys/unix/syscall_linux_gc.go:10:6: missing function body ../vendor/golang.org/x/sys/unix/syscall_linux_gc.go:14:6: missing function body ../vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12:6: missing function body ../vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13:6: missing function body ../vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14:6: missing function body ../vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15:6: missing function body
1 parent 17f9564 commit 9b6db88

File tree

2 files changed

+33
-17
lines changed

2 files changed

+33
-17
lines changed

misc/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dio*

misc/build_binaries.sh

+32-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
11
#!/bin/sh
22

33
# This is just a small sh script to generate the Dio release binaries
4-
export GOOS=darwin
5-
export GOARCH=unknown
6-
for GOARCH in 386 amd64; do
7-
echo Building Dio for ${GOOS} + ${GOARCH}
4+
5+
export GOARCH=386
6+
for GOOS in android darwin freebsd netbsd openbsd plan9 windows linux; do
7+
echo Building Dio for ${GOOS}-${GOARCH}
8+
go build -o dio-${GOOS}-x86 ..
9+
sha256sum dio-${GOOS}-x86 > dio-${GOOS}-x86.SHA256
10+
done
11+
12+
export GOARCH=amd64
13+
for GOOS in android darwin freebsd netbsd openbsd plan9 solaris windows linux; do
14+
echo Building Dio for ${GOOS}-${GOARCH}
815
go build -o dio-${GOOS}-${GOARCH} ..
9-
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
16+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256
1017
done
1118

12-
GOOS=freebsd
13-
for GOARCH in 386 amd64; do
14-
echo Building Dio for ${GOOS} + ${GOARCH}
19+
export GOARCH=arm
20+
for GOOS in android darwin freebsd netbsd openbsd plan9 windows linux; do
21+
echo Building Dio for ${GOOS}-${GOARCH}
1522
go build -o dio-${GOOS}-${GOARCH} ..
16-
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
23+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256
1724
done
1825

19-
GOOS=windows
20-
for GOARCH in 386 amd64; do
21-
echo Building Dio for ${GOOS} + ${GOARCH}
22-
go build -o dio-${GOOS}-${GOARCH}.exe ..
23-
sha256sum dio-${GOOS}-${GOARCH}.exe > dio-${GOOS}-${GOARCH}.exe.SHA256
26+
export GOARCH=arm64
27+
for GOOS in android darwin freebsd illumos netbsd openbsd linux; do
28+
echo Building Dio for ${GOOS}-${GOARCH}
29+
go build -o dio-${GOOS}-${GOARCH} ..
30+
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-x86.SHA256
2431
done
2532

2633
GOOS=linux
27-
for GOARCH in 386 amd64 arm64 ppc64 ppc64le s390x; do
28-
echo Building Dio for ${GOOS} + ${GOARCH}
34+
for GOARCH in mips mips64 mips64le mipsle ppc64 ppc64le s390x; do
35+
echo Building Dio for ${GOOS}-${GOARCH}
2936
go build -o dio-${GOOS}-${GOARCH} ..
3037
sha256sum dio-${GOOS}-${GOARCH} > dio-${GOOS}-${GOARCH}.SHA256
3138
done
3239

33-
echo Building Dio for ${GOOS} + ARMv6
40+
echo Building Dio for ${GOOS}-ARMv6
3441
GOARCH=arm GOARM=6 go build -o dio-${GOOS}-armv6 ..
3542
sha256sum dio-${GOOS}-armv6 > dio-${GOOS}-armv6.SHA256
43+
44+
echo Building Dio for aix-ppc64
45+
go build -o dio-aix-ppc64 ..
46+
sha256sum dio-aix-ppc64 > dio-aix-ppc64.SHA256
47+
48+
echo Building Dio for js-wasm
49+
go build -o dio-js-wasm ..
50+
sha256sum dio-js-wasm > dio-js-wasm.SHA256

0 commit comments

Comments
 (0)