Skip to content

Commit

Permalink
Add support for generating illumos/amd64 targeted builds (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
szaydel authored Jun 14, 2023
1 parent c2ccfe6 commit 2dcd82f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ builds:
- linux
- freebsd
- netbsd
- illumos
goarch:
- amd64
- arm64
Expand Down
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ get_binaries() {
freebsd/mips64le) BINARIES="golangci-lint" ;;
freebsd/ppc64le) BINARIES="golangci-lint" ;;
freebsd/s390x) BINARIES="golangci-lint" ;;
illumos/amd64) BINARIES="golangci-lint" ;;
linux/386) BINARIES="golangci-lint" ;;
linux/amd64) BINARIES="golangci-lint" ;;
linux/arm64) BINARIES="golangci-lint" ;;
Expand Down Expand Up @@ -202,6 +203,7 @@ uname_os() {
mingw*) os="windows" ;;
cygwin*) os="windows" ;;
win*) os="windows" ;;
sunos) [ $(uname -o) == "illumos" ] && os=illumos ;;
esac
echo "$os"
}
Expand All @@ -212,6 +214,7 @@ uname_arch() {
x86) arch="386" ;;
i686) arch="386" ;;
i386) arch="386" ;;
i86pc) arch="amd64" ;;
aarch64) arch="arm64" ;;
armv5*) arch="armv5" ;;
armv6*) arch="armv6" ;;
Expand All @@ -226,6 +229,7 @@ uname_os_check() {
darwin) return 0 ;;
dragonfly) return 0 ;;
freebsd) return 0 ;;
illumos) return 0;;
linux) return 0 ;;
android) return 0 ;;
nacl) return 0 ;;
Expand Down

0 comments on commit 2dcd82f

Please sign in to comment.