Skip to content

Commit

Permalink
Goreleaser Fix (#30)
Browse files Browse the repository at this point in the history
* Goreleaser Bug

Theoretically this config should work but it doesn't

* Specify `goamd64`
  • Loading branch information
fkorotkov committed Jan 24, 2024
1 parent 817dbb6 commit f5a1b1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/.idea
/dist
/target
25 changes: 5 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,27 @@
project_name: softnet

builds:
- id: softnet-arm64
- id: softnet
builder: prebuilt
goamd64: [v1]
goos:
- darwin
goarch:
- arm64
prebuilt:
path: "target/aarch64-apple-darwin/release-with-debug/softnet"
- id: softnet-x86
builder: prebuilt
goos:
- darwin
goarch:
- amd64
prebuilt:
path: "target/x86_64-apple-darwin/release-with-debug/softnet"
path: 'target/{{- if eq .Arch "arm64" }}aarch64{{- else }}x86_64{{ end }}-apple-darwin/release-with-debug/softnet'

archives:
- id: regular-arm64
builds:
- softnet-arm64
name_template: "{{ .ProjectName }}-{{ .Arch }}"
- id: regular-x86
builds:
- softnet-x86
- id: regular
name_template: "{{ .ProjectName }}-{{ .Arch }}"

release:
prerelease: auto

brews:
- name: softnet
ids:
- regular-arm64
- regular-x86
tap:
repository:
owner: cirruslabs
name: homebrew-cli
caveats: See the Github repository for more information
Expand Down

0 comments on commit f5a1b1c

Please sign in to comment.