Add GoReleaser configuration and update Makefile for streamlined builds
Some checks failed
Release Tag / release (push) Failing after 46s
Some checks failed
Release Tag / release (push) Failing after 46s
- Introduced .goreleaser.yaml for automated release management. - Updated Makefile to utilize GoReleaser for building the jiggablend binary. - Added new workflows for release tagging and pull request checks in Gitea. - Updated dependencies in go.mod and go.sum, including new packages for versioning. - Enhanced .gitignore to exclude build artifacts in the dist directory.
This commit is contained in:
50
Makefile
50
Makefile
@@ -1,12 +1,11 @@
|
||||
.PHONY: build build-web run run-manager run-runner cleanup cleanup-manager cleanup-runner kill-all clean-bin clean-web test help install
|
||||
.PHONY: build build-web run run-manager run-runner cleanup cleanup-manager cleanup-runner clean-bin clean-web test help install
|
||||
|
||||
# Build the jiggablend binary (includes embedded web UI)
|
||||
build: clean-bin build-web
|
||||
go build -o bin/jiggablend ./cmd/jiggablend
|
||||
|
||||
# Build for Linux (cross-compile)
|
||||
build-linux: clean-bin build-web
|
||||
GOOS=linux GOARCH=amd64 go build -o bin/jiggablend ./cmd/jiggablend
|
||||
build:
|
||||
@echo "Building with GoReleaser..."
|
||||
goreleaser build --clean --snapshot --single-target
|
||||
@mkdir -p bin
|
||||
@find dist -name jiggablend -type f -exec cp {} bin/jiggablend \;
|
||||
|
||||
# Build web UI
|
||||
build-web: clean-web
|
||||
@@ -27,10 +26,6 @@ cleanup-runner:
|
||||
# Cleanup both manager and runner logs
|
||||
cleanup: cleanup-manager cleanup-runner
|
||||
|
||||
# Kill all jiggablend processes
|
||||
kill-all:
|
||||
@echo "Not implemented"
|
||||
|
||||
# Run manager and runner in parallel (for testing)
|
||||
run: cleanup build init-test
|
||||
@echo "Starting manager and runner in parallel..."
|
||||
@@ -74,37 +69,30 @@ clean-web:
|
||||
test:
|
||||
go test ./... -timeout 30s
|
||||
|
||||
# Install to /usr/local/bin
|
||||
install: build
|
||||
sudo cp bin/jiggablend /usr/local/bin/
|
||||
|
||||
# Show help
|
||||
help:
|
||||
@echo "Jiggablend Build and Run Makefile"
|
||||
@echo ""
|
||||
@echo "Build targets:"
|
||||
@echo " build - Build jiggablend binary with embedded web UI"
|
||||
@echo " build-linux - Cross-compile for Linux amd64"
|
||||
@echo " build-web - Build web UI only"
|
||||
@echo " build - Build jiggablend binary with embedded web UI"
|
||||
@echo " build-web - Build web UI only"
|
||||
@echo ""
|
||||
@echo "Run targets:"
|
||||
@echo " run - Run manager and runner in parallel (for testing)"
|
||||
@echo " run-manager - Run manager server"
|
||||
@echo " run-runner - Run runner with test API key"
|
||||
@echo " init-test - Initialize test configuration (run once)"
|
||||
@echo " run - Run manager and runner in parallel (for testing)"
|
||||
@echo " run-manager - Run manager server"
|
||||
@echo " run-runner - Run runner with test API key"
|
||||
@echo " init-test - Initialize test configuration (run once)"
|
||||
@echo ""
|
||||
@echo "Cleanup targets:"
|
||||
@echo " cleanup - Clean all logs"
|
||||
@echo " cleanup-manager - Clean manager logs"
|
||||
@echo " cleanup-runner - Clean runner logs"
|
||||
@echo " kill-all - Kill all running jiggablend processes"
|
||||
@echo " cleanup - Clean all logs"
|
||||
@echo " cleanup-manager - Clean manager logs"
|
||||
@echo " cleanup-runner - Clean runner logs"
|
||||
@echo ""
|
||||
@echo "Other targets:"
|
||||
@echo " clean-bin - Clean build artifacts"
|
||||
@echo " clean-web - Clean web build artifacts"
|
||||
@echo " test - Run Go tests"
|
||||
@echo " install - Install to /usr/local/bin"
|
||||
@echo " help - Show this help"
|
||||
@echo " clean-bin - Clean build artifacts"
|
||||
@echo " clean-web - Clean web build artifacts"
|
||||
@echo " test - Run Go tests"
|
||||
@echo " help - Show this help"
|
||||
@echo ""
|
||||
@echo "CLI Usage:"
|
||||
@echo " jiggablend manager serve - Start the manager server"
|
||||
|
||||
Reference in New Issue
Block a user