Skip to content

Commit

Permalink
fix: more release tweaks to fix x86 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
joepurdy committed Nov 9, 2022
1 parent 7e0bb89 commit a3f7901
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
builds:
- id: linux-build
- id: linux-amd64-build
binary: ax
goos:
- linux
goarch:
- amd64
- arm64
# set the modified timestamp on the output binary to the git timestamp to ensure a reproducible build
mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}'
env: &build-env
Expand All @@ -16,6 +15,16 @@ builds:
-extldflags '-static'
-X main.Version={{.Version}}

- id: linux-arm64-build
binary: ax
goos:
- linux
goarch:
- arm64
mod_timestamp: *build-timestamp
env: *build-env
ldflags: *build-ldflags

- id: darwin-build
binary: ax
goos:
Expand All @@ -28,24 +37,23 @@ builds:
ldflags: *build-ldflags

universal_binaries:
- ids:
- darwin-build
- id: darwin-build
- replace: true

archives:
- id: linux-archives
builds:
- linux-build

- id: darwin-archives
- id: default-archive
builds:
- linux-amd64-build
- linux-arm64-build
- darwin-build
replacements:
darwin: macOS
amd64: x86_64
all: universal

brews:
- name: axolotl

goamd64: v3

tap:
owner: ArcadiaPower
name: homebrew-tap
Expand Down

0 comments on commit a3f7901

Please sign in to comment.