Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Aug 16, 2021
1 parent a76d418 commit fbbfb16
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: OSXCross for CGO Support
run: |
mkdir ../../osxcross
git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
24 changes: 19 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=1
- id: linux-build
env:
- CGO_ENABLED=1
goos:
- linux
- windows
- darwin
- linux
ignore:
- goos: linux
goarch: 386
- id: darwin-build
ldflags:
- -s
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++
goos:
- darwin
ignore:
- goos: darwin
goarch: 386
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit fbbfb16

Please sign in to comment.