makefile minor changes
All checks were successful
build bin / Make sure build does not fail (push) Successful in 2m29s
All checks were successful
build bin / Make sure build does not fail (push) Successful in 2m29s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
This commit is contained in:
parent
866ef62e6c
commit
174b4ae0ea
2 changed files with 3 additions and 7 deletions
|
@ -24,8 +24,6 @@ jobs:
|
|||
go-version-file: './go.mod'
|
||||
- run: go version
|
||||
name: Go version
|
||||
- run: make dep
|
||||
name: install dependencies
|
||||
- run: make build
|
||||
name: build app
|
||||
name: install dependencies and build bin files
|
||||
|
||||
|
|
6
Makefile
6
Makefile
|
@ -3,7 +3,7 @@ BUILD_FOLDER=build
|
|||
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
build: dep
|
||||
GOARCH=amd64 GOOS=darwin go build -o ${BUILD_FOLDER}/${BINARY_NAME}-darwin main.go
|
||||
GOARCH=amd64 GOOS=linux go build -o ${BUILD_FOLDER}/${BINARY_NAME}-linux main.go
|
||||
GOARCH=amd64 GOOS=windows go build -o ${BUILD_FOLDER}/${BINARY_NAME}-windows main.go
|
||||
|
@ -13,9 +13,7 @@ run: build
|
|||
|
||||
clean:
|
||||
go clean
|
||||
rm ${BINARY_NAME}-darwin
|
||||
rm ${BINARY_NAME}-linux
|
||||
rm ${BINARY_NAME}-windows
|
||||
rm -rf ./${BUILD_FOLDER}
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
|
Loading…
Reference in a new issue