Skip to content

Commit

Permalink
configure goreleaser for local build
Browse files Browse the repository at this point in the history
  • Loading branch information
adwski committed May 13, 2024
1 parent ae1c608 commit 7db87e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ before:
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/vidit
binary: vidit
tags:
- netgo
goos:
- darwin
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm64

archives:
- format: tar.gz
name_template: >-
vidit_
{{- .ProjectName -}}
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ goimports:
lint:
golangci-lint run ./...

.PHONY: build
build:
go build -gcflags "-m" -race -o ./cmd/userapi/userapi ./cmd/userapi/*.go
build-tui:
goreleaser build --debug --clean

.PHONY: statictest
statictest:
Expand Down

0 comments on commit 7db87e8

Please sign in to comment.