Skip to content

Commit

Permalink
Add universal binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
carljavier committed Aug 31, 2023
1 parent 19cde95 commit 5e76d28
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
AC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
AC_TEAMID: ${{ secrets.AC_TEAMID }}
MACOS_CERTIFICATE_NAME: ${{ secrets.MACOS_CERTIFICATE_NAME }}
DIST_FILE_ARM64: dist/hava_darwin_arm64/hava
DIST_FILE_AMD64: dist/hava_darwin_amd64_v1/hava
DIST_FILE_ARM64: dist/hava_darwin_all/hava
run: |
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
Expand Down Expand Up @@ -96,7 +95,7 @@ jobs:
xcrun notarytool submit "./${DIST_FILE_ARM64}--macos-x64--${{ github.sha }}.zip" --keychain-profile "notarytool-profile" --wait
# Delete build keychain
security delete-keychain build.keychain
security delete-keychain $KEYCHAIN_PATH
-
Expand Down
22 changes: 17 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,31 @@ builds:
id: hava
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -X github.com/teamhava/hava/version.Version={{.Version}}
- -X github.com/teamhava/hava/version.Build={{.Tag}}
- -X github.com/teamhava/hava/version.BuiltBy=goreleaser
- -X github.com/teamhava/hava/version.Date={{.Date}}
ignore:
- goos: linux
goarch: 386
- goos: windows
goarch: 386
targets:
# Since: v1.9
- go_first_class
# Since: v1.9
- go_118_first_class
- linux_amd64_v1
- darwin_arm64
- linux_arm_6
universal_binaries:
- replace: true


# dockers:
# - image_templates:
# - teamhava/hava
# - hava/cli

archives:
- format: tar.gz
Expand Down

0 comments on commit 5e76d28

Please sign in to comment.