Skip to content

Commit eb0717f

Browse files
committed
fix: use macos-latest runner for goreleaser builds
macOS runner supports CGo needed for Wails tray builds on darwin. Linux targets are built with notray tag (no CGo). Also adds Node.js setup for frontend build and restores before hooks.
1 parent b88ba43 commit eb0717f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
goreleaser:
13-
runs-on: ubuntu-latest
13+
runs-on: macos-latest
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
go-version-file: go.mod
2222

23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
2327
- uses: goreleaser/goreleaser-action@v6
2428
with:
2529
version: "~> v2"

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before:
77
- cp -r frontend/dist internal/assets/dist
88

99
builds:
10-
# macOS: full build with tray support (CGo required by Wails)
10+
# macOS: full build with tray support (runs on macos-latest runner)
1111
- id: darwin
1212
main: .
1313
binary: lazyagent
@@ -19,7 +19,7 @@ builds:
1919
- amd64
2020
- arm64
2121

22-
# Linux: TUI only, no tray (Wails excluded via build tag)
22+
# Linux: TUI only, no tray (no CGo needed)
2323
- id: linux
2424
main: .
2525
binary: lazyagent

0 commit comments

Comments
 (0)