Skip to content

Commit

Permalink
repo: setup clean and build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Aug 25, 2024
1 parent 39a2c04 commit 961fe8b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 86 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# Releases
dist
output

# Go workspace files
go.work
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ copywrite:
--config .github/workflows/scripts/copywrite.hcl headers \
--spdx "MPL-2.0"

.PHONY: build
build: clean
@echo "--> Build ..."
CGO_ENABLED=0 go build -o output/$(NAME)

.PHONY: clean
clean:
@echo "--> Clean ..."
rm -rf dist output/$(NAME)

.PHONY: release
release:
envy exec gh-release goreleaser release --clean
Expand Down
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@ require (
dario.cat/mergo v1.0.1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/cloudflare/circl v1.4.0 // indirect
github.com/cyphar/filepath-securejoin v0.3.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/hashicorp/go-set v0.1.14 // indirect
github.com/hashicorp/go-set/v2 v2.1.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
Expand Down
Loading

0 comments on commit 961fe8b

Please sign in to comment.