Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
with:
go-version: "1.24"

- name: Install Linux audio dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down
22 changes: 15 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ before:
- go mod tidy

builds:
- id: somafm
- id: linux
main: ./cmd/somafm
binary: somafm
env:
- CGO_ENABLED=0
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/glebovdev/somafm-cli/internal/config.AppVersion={{.Version}}

- id: darwin-windows
main: ./cmd/somafm
binary: somafm
env:
- CGO_ENABLED=0
goos:
- darwin
- windows
goarch:
Expand All @@ -28,11 +41,6 @@ builds:
ignore:
- goos: windows
goarch: arm64
# Linux requires CGO for audio (oto/v3)
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64

archives:
- id: default
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ A terminal-based music player for [SomaFM](https://somafm.com/) radio stations b
brew install glebovdev/tap/somafm
```

### Linux

Download `somafm_*_linux_amd64.tar.gz` from the [Releases page](https://github.com/glebovdev/somafm-cli/releases) and extract:

```bash
tar -xzf somafm_*_linux_amd64.tar.gz
sudo mv somafm /usr/local/bin/
```

### Windows

```powershell
Expand Down