diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 3e3ec22..a79572c 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -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 diff --git a/Makefile b/Makefile index d31f8ab..10b4fc1 100644 --- a/Makefile +++ b/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 ./...