From f552f7a9c29a5ab25d3722cb1699141ed9299126 Mon Sep 17 00:00:00 2001 From: Prabodh-dev Date: Wed, 21 Oct 2026 07:38:57 +0000 Subject: [PATCH 1/2] Explain amd64 vs arm64 in the install steps; use a real release version; pin the CI badge to main --- README.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f797a70..29f1c03 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ pane per process, and live control over each of them: restart, stop, search, and see what is using your CPU, without a pile of terminal tabs. -[![ci](https://github.com/Prabodh-dev/muster/actions/workflows/ci.yml/badge.svg)](https://github.com/Prabodh-dev/muster/actions/workflows/ci.yml) +[![ci](https://github.com/Prabodh-dev/muster/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Prabodh-dev/muster/actions/workflows/ci.yml) [![release](https://img.shields.io/github/v/release/Prabodh-dev/muster?include_prereleases)](https://github.com/Prabodh-dev/muster/releases) [![license](https://img.shields.io/github/license/Prabodh-dev/muster)](LICENSE) @@ -78,13 +78,22 @@ which process is running, exited cleanly, or crashed. Grab the archive for your platform from the [Releases page](https://github.com/Prabodh-dev/muster/releases). Builds are -published for Linux, macOS and Windows on `amd64` and `arm64`, together with a -`muster__checksums.txt` file. +published for Linux, macOS and Windows, each as `amd64` and `arm64`, together +with a `muster__checksums.txt` file. -**Linux and macOS** (replace the version, OS and architecture): +**`amd64` or `arm64`?** Most machines are `amd64` (Intel/AMD: nearly all +Windows PCs, most Linux machines, older Intel Macs). Pick `arm64` only on ARM +hardware: Apple Silicon Macs (M1 and later), a Raspberry Pi on a 64-bit OS, or +an ARM-based Windows device such as the Surface Pro X. Not sure? Run +`uname -m` (`x86_64` means amd64, `arm64` or `aarch64` means arm64), or on +Windows check *Settings → System → About → System type*. + +**Linux and macOS** (this picks your OS and architecture for you): ```sh -VERSION=1.0.0 OS=linux ARCH=amd64 # OS: linux | darwin ARCH: amd64 | arm64 +VERSION=0.1.0 # latest: see the Releases page +OS=$(uname -s | tr '[:upper:]' '[:lower:]') # linux | darwin +ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/') # amd64 | arm64 BASE=https://github.com/Prabodh-dev/muster/releases/download/v$VERSION curl -LO $BASE/muster_${VERSION}_${OS}_${ARCH}.tar.gz curl -LO $BASE/muster_${VERSION}_checksums.txt @@ -95,8 +104,9 @@ sudo mv muster /usr/local/bin/ muster -version ``` -**Windows**: download `muster__windows_amd64.zip` (or `arm64`), -unzip it, and put `muster.exe` somewhere on your `PATH`. To verify it, compare +**Windows**: download `muster__windows_amd64.zip` (only choose the +`arm64` one on an ARM-based device), unzip it, and put `muster.exe` somewhere +on your `PATH`. To verify it, compare `Get-FileHash muster__windows_amd64.zip` with the checksums file. The binaries are not code-signed. macOS may block the first run; allow it in From 2f5054649332c4c0e8ee7a843ad3b7746b1ac261 Mon Sep 17 00:00:00 2001 From: Prabodh-dev Date: Wed, 21 Oct 2026 07:38:57 +0000 Subject: [PATCH 2/2] Pin GitHub Actions to commit SHAs --- .github/workflows/ci.yml | 20 ++++++++++---------- .github/workflows/release.yml | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3eef982..4c00f10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,8 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod - run: go vet ./... @@ -26,8 +26,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod - name: gofmt @@ -42,7 +42,7 @@ jobs: run: | go mod tidy -diff go mod verify - - uses: golangci/golangci-lint-action@v9 + - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: version: v2.15.0 # Skip the action's `config verify` step, which downloads a JSON @@ -61,11 +61,11 @@ jobs: env: GOOS: ${{ matrix.goos }} steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod - - uses: golangci/golangci-lint-action@v9 + - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: version: v2.15.0 # Skip the action's `config verify` step, which downloads a JSON @@ -79,8 +79,8 @@ jobs: vulncheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: stable - run: go install golang.org/x/vuln/cmd/govulncheck@v1.9.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98e381f..cacf6a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,15 +14,15 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # the changelog needs the tag history - - uses: actions/setup-go@v7 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: stable - run: go vet ./... - run: go test ./... - - uses: goreleaser/goreleaser-action@v7 + - uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0 with: distribution: goreleaser version: "~> v2"