Fixed target directory for man page; removes the homebrew trigger in release workflow -- gotop is in core.

This commit is contained in:
Sean E. Russell 2022-02-14 16:44:27 -06:00
parent f15c3dea66
commit f21a461346
5 changed files with 3 additions and 27 deletions

View File

@ -14,14 +14,6 @@ jobs:
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
id: tag_name
- name: Update Homebrew recipe
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: xxxserxxx/homebrew-gotop
event-type: my-release
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
- name: Update and inform Homebrew
uses: dawidd6/action-homebrew-bump-formula@v3
with:

View File

@ -28,4 +28,4 @@ contents:
# Manpage
- src: ${MANPAGE}
dst: /usr/share/man8/gotop.8.gz
dst: /usr/share/man/man8/gotop.8.gz

View File

@ -1,8 +1,8 @@
//go:build linux
// +build linux
package devices
// TODO gopsutil is at v3, and we're using v2. See if v3 is released and upgrade if so.
import "github.com/shirou/gopsutil/cpu"
func CpuCount() (int, error) {

View File

@ -23,7 +23,6 @@ var remoteLock sync.Mutex
// TODO remote network & disk aren't reported
// TODO network resiliency; I believe it currently crashes gotop when the network goes down
// TODO Replace custom decoder with https://github.com/prometheus/common/blob/master/expfmt/decode.go
// TODO MQTT / Stomp / MsgPack
// FIXME high CPU use when remote goes offline
// FIXME higher CPU use when using remote in general
func init() {

View File

@ -7,23 +7,8 @@
5. Download and verify the correct version of one of the binaries
6. Finish the draft release and publish.
7. Check gotop-builder for a successful everything build; if successful, publish.
8. Notify Nix
8. ~~Notify Nix~~ -- this seems to have been automated by the Nix folks?
9. ~~Notify Homebrew~~ ~~Automated now.~~ Automation broke. Notify manually.
10. Do the Arch release.
1. cd actions/arch-package
2. VERSION=v4.1.2 ./run.sh
## Nix
I haven't yet figured this out, so currently just file a ticket and hope somebody on that end updates the package.
Nix adds new and interesting complexities to the release.
0. Download the gotop src package; run sha256 on it to get the hash
1. cd to the nixpkgs directory
2. Update the sha256 hash in `pkgs/tools/system/gotop/default.nix`
2. `docker run -it --rm --mount type=bind,source="\$(pwd)",target=/mnt nixos/nix sh`
3. `cd /mnt`
8. install & run vgo2nix to update deps.nix
7. `nix-build -A gotop`
8. When it fails, ...