mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-03 01:38:30 +02:00
Added run command and reverted build-all to old logic, added run vscode task
This commit is contained in:
@@ -10,13 +10,11 @@ GOARCH := $(shell go env GOARCH)
|
||||
|
||||
|
||||
build-all:
|
||||
@echo "\n🏗️ Building all architectures and release modes"
|
||||
@echo "\n🏗️ Building all architectures for ${RELEASE} mode"
|
||||
@echo "🟡 This will build all supported architectures and release combinations. It can take a while...\n"
|
||||
|
||||
GOARCH=amd64 make build
|
||||
GOARCH=arm make build
|
||||
RELEASE=prod make build
|
||||
RELEASE=cloud make build
|
||||
GOOS=linux GOARCH=amd64 make build
|
||||
GOOS=linux GOARCH=arm make build
|
||||
|
||||
@echo "\n🟢 All builds completed and available at ./bin/ \n"
|
||||
|
||||
@@ -62,6 +60,10 @@ test:
|
||||
test-with-coverage:
|
||||
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||
|
||||
run:
|
||||
@echo "\n🚀 Running edgeboxctl\n"
|
||||
./bin/edgeboxctl-${GOOS}-${GOARCH}
|
||||
|
||||
install:
|
||||
@echo "📦 Installing edgeboxctl service (${RELEASE}) for ${GOOS} (${GOARCH})\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user