Skip to content

Commit

Permalink
build: add bin (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Jan 13, 2023
1 parent 1a2fa8b commit 7daa63d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ jobs:
- image: alexfalkowski/go:1.19-3.1
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: make dep
- run: make lint
- run: make build
resource_class: large
release:
docker:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bin"]
path = bin
url = git@github.com:alexfalkowski/bin.git
32 changes: 2 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
.PHONY: vendor

download:
go mod download
include bin/build/make/go.mak

tidy:
go mod tidy

vendor:
go mod vendor

get:
go get $(module)

## Setup go deps
dep: download tidy vendor

## Check outdated deps
outdated:
go list -u -m -mod=mod -json all | go-mod-outdated -update -direct

## Update go dep
update-dep: get tidy vendor

## Lint all the code
lint:
golangci-lint run --timeout 5m

## Fix the lint issues in the code (if possible)
fix-lint:
golangci-lint run --timeout 5m --fix

## Build release binary
## Build release binary.
build:
go build -mod vendor gocovmerge.go
1 change: 1 addition & 0 deletions bin
Submodule bin added at 9518fb

0 comments on commit 7daa63d

Please sign in to comment.