makefile minor changes
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:
Sagi Dayan 2024-12-15 19:24:10 +02:00
parent 866ef62e6c
commit 174b4ae0ea
Signed by: sagi
GPG key ID: FAB96BFC63B46458
2 changed files with 3 additions and 7 deletions

View file

@ -24,8 +24,6 @@ jobs:
go-version-file: './go.mod' go-version-file: './go.mod'
- run: go version - run: go version
name: Go version name: Go version
- run: make dep
name: install dependencies
- run: make build - run: make build
name: build app name: install dependencies and build bin files

View file

@ -3,7 +3,7 @@ BUILD_FOLDER=build
.PHONY: build .PHONY: build
build: build: dep
GOARCH=amd64 GOOS=darwin go build -o ${BUILD_FOLDER}/${BINARY_NAME}-darwin main.go 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=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 GOARCH=amd64 GOOS=windows go build -o ${BUILD_FOLDER}/${BINARY_NAME}-windows main.go
@ -13,9 +13,7 @@ run: build
clean: clean:
go clean go clean
rm ${BINARY_NAME}-darwin rm -rf ./${BUILD_FOLDER}
rm ${BINARY_NAME}-linux
rm ${BINARY_NAME}-windows
test: test:
go test ./... go test ./...