Skip to content
Permalink
Browse files

issue-27: cross-compile darwin w/ cgo

  • Loading branch information...
f1337 committed Apr 29, 2018
1 parent 21747ec commit 035126b2fbffeb43407ce35ac9884963edbeae0f
Showing with 14 additions and 0 deletions.
  1. +9 −0 .goreleaser.yml
  2. +5 −0 build-darwin-cgo.sh
@@ -12,6 +12,7 @@
builds:
- binary: gotop
goos:
- darwin
- linux
goarch:
- amd64
@@ -22,8 +23,16 @@ builds:
- 5
- 6
- 7
hooks:
post: ./build-darwin-cgo.sh
archive:
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
replacements:
arm64: arm8
format: tgz
brew:
github:
owner: cjbassi
name: homebrew-gotop
description: "A terminal based graphical activity monitor inspired by gtop and vtop"
homepage: "https://github.com/cjbassi/gotop"
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

xgo --targets="darwin/386,darwin/amd64" $PWD
mv gotop-darwin-10.6-386 dist/darwin_386/gotop
mv gotop-darwin-10.6-amd64 dist/darwin_amd64/gotop

0 comments on commit 035126b

Please sign in to comment.
You can’t perform that action at this time.