Skip to content

Commit c9962c2

Browse files
ci: use macos-latest runner and set GOARCH for fast build
1 parent 786aa51 commit c9962c2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,19 @@ jobs:
3131
binary_name: ipMonitorApp
3232
asset_name: ipMonitorApp-linux-amd64.tar.gz
3333

34-
# macOS Apple Silicon (arm64)
34+
# macOS Apple Silicon (arm64 - M1/M2/M3/M4)
3535
- os: darwin
3636
runner: macos-latest
3737
arch: arm64
38+
goarch: arm64
3839
binary_name: ipMonitorApp
3940
asset_name: ipMonitorApp-darwin-arm64.tar.gz
4041

41-
# macOS Intel (amd64)
42+
# macOS Intel (amd64) via compilação nativa no runner macOS
4243
- os: darwin
43-
runner: macos-13
44+
runner: macos-latest
4445
arch: amd64
46+
goarch: amd64
4547
binary_name: ipMonitorApp
4648
asset_name: ipMonitorApp-darwin-amd64.tar.gz
4749

@@ -76,6 +78,7 @@ jobs:
7678
if: matrix.os != 'windows'
7779
env:
7880
CGO_ENABLED: '1'
81+
GOARCH: ${{ matrix.arch }}
7982
run: |
8083
go build -ldflags="-s -w" -o ${{ matrix.binary_name }} .
8184
chmod +x ${{ matrix.binary_name }}

0 commit comments

Comments
 (0)