diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-06 19:23:56 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-07 00:27:21 -0800 |
commit | 180ab4c804eb7f99fa2bf8455b6f918ad3dc9219 (patch) | |
tree | ba03ece855b34becf570c9f7c12f9014c17c584f /build | |
parent | 4ba6ee3cfe8c3d20f2e12dfefb4abc13f34dfeb6 (diff) |
Add .travis.yml and reconfigure release process
- travis-ci used to publish binaries to the GitHub releases tab on new release
- Will also publish .deb and .rpm packages
- Haven't gotten the checksums file to work yet
- OSX x86 also isn't working
- No longer using goreleaser to publish binaries
- didn't support cgo cross compilation which made things difficult
- Remove obsolete Makefile
Diffstat (limited to 'build')
-rw-r--r-- | build/.goreleaser.yml | 22 | ||||
-rwxr-xr-x | build/build-darwin-cgo.sh | 13 | ||||
-rw-r--r-- | build/build_steps.txt | 21 | ||||
-rw-r--r-- | build/gotop-nfpm.yml | 15 |
4 files changed, 0 insertions, 71 deletions
diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml deleted file mode 100644 index 9bc1d5d..0000000 --- a/build/.goreleaser.yml +++ /dev/null @@ -1,22 +0,0 @@ -builds: - - binary: gotop - goos: - - linux - goarch: - - amd64 - - 386 - - arm - - arm64 - goarm: - - 5 - - 6 - - 7 - hooks: - post: ./build/build-darwin-cgo.sh -archive: - name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}" - replacements: - arm64: arm8 - format: tgz - files: - - none* diff --git a/build/build-darwin-cgo.sh b/build/build-darwin-cgo.sh deleted file mode 100755 index bc728a8..0000000 --- a/build/build-darwin-cgo.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -version=$(go run main.go -v) - -xgo --targets="darwin/386,darwin/amd64" . - -mv gotop-darwin-10.6-386 gotop -tar czf gotop_${version}_darwin_386.tgz gotop -rm -f gotop - -mv gotop-darwin-10.6-amd64 gotop -tar czf gotop_${version}_darwin_amd64.tgz gotop -rm -f gotop diff --git a/build/build_steps.txt b/build/build_steps.txt deleted file mode 100644 index 8b8e26e..0000000 --- a/build/build_steps.txt +++ /dev/null @@ -1,21 +0,0 @@ -Dependencies: -- goreleaser: `go get github.com/goreleaser/goreleaser` -- xgo: `docker pull karalabe/xgo-latest; go get github.com/karalabe/xgo` -- dockerd - -make sure gotop builds and runs -update version number in main.go -commit changes -tag commit with version number -push changes -export GitHub token in shell -make sure dockerd is running -run `goreleaser --rm-dist -f build/.goreleaser.yml` -update GitHub release with Darwin builds -update homebrew-gotop - version numbers (there's 3) - sha256 (run `sha256sum {archived file}`) -update gotop and gotop-bin AUR packages - reset pkgrel - version number - sha256sum diff --git a/build/gotop-nfpm.yml b/build/gotop-nfpm.yml deleted file mode 100644 index 1e9501a..0000000 --- a/build/gotop-nfpm.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "gotop" -arch: "amd64" -platform: "linux" -version: "v${VERSION}" -section: "default" -priority: "extra" -maintainer: "Caleb Bassi <calebjbassi@gmail.com>" -description: | - A terminal based graphical activity monitor inspired by gtop and vtop -vendor: "Caleb Bassi" -homepage: "https://github.com/cjbassi/gotop" -license: "GNU Affero General Public License v3.0" -bindir: "/usr/local/bin" -files: - /tmp/dist/gotop: "/usr/local/bin/gotop" |