Skip to content

Commit c1dabab

Browse files
committed
chore(ci): temporarily ignore Darwin & Linux and only focus on building for windows
1 parent 3ff95ab commit c1dabab

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/dev-build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
with:
2727
go-version: '1.23'
2828
check-latest: true
29+
30+
- name: Fix dialog package dependency
31+
run: |
32+
# Just run go mod tidy here
33+
go mod tidy
2934
3035
- name: Run GoReleaser Snapshot
3136
uses: goreleaser/goreleaser-action@v5
@@ -35,6 +40,7 @@ jobs:
3540
args: release --snapshot --clean
3641
env:
3742
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
CGO_ENABLED: 0 # Disable CGO for better cross-compilation compatibility
3844

3945
- name: Create/Update Development Release
4046
uses: softprops/action-gh-release@v1

.goreleaser.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ builds:
66
- env:
77
- CGO_ENABLED=0
88
goos:
9-
- linux
9+
# - linux # commented out to avoid the github.com/sqweek/dialog package issues
1010
- windows
11-
- darwin
11+
# - Darwin # commented out to avoid the cocoa package issues
1212
goarch:
1313
- amd64
1414
- arm64
@@ -19,8 +19,10 @@ builds:
1919
- -X github.com/hamzabow/co/cmd.Date={{.Date}}
2020
flags:
2121
- -trimpath
22+
- -tags=netgo
2223
main: ./main.go
2324
binary: co
25+
# No need for ignore section since darwin is not in goos list
2426

2527
archives:
2628
- format_overrides:

0 commit comments

Comments
 (0)