Added run command and reverted build-all to old logic, added run vscode task
parent
525c7a8113
commit
a60a41f7f1
|
@ -1,6 +1,21 @@
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make",
|
||||||
|
"args": ["build"],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Build All",
|
"label": "Build All",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
@ -97,6 +112,16 @@
|
||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Run",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make",
|
||||||
|
"args": ["run"],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Install",
|
"label": "Install",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -10,13 +10,11 @@ GOARCH := $(shell go env GOARCH)
|
||||||
|
|
||||||
|
|
||||||
build-all:
|
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"
|
@echo "🟡 This will build all supported architectures and release combinations. It can take a while...\n"
|
||||||
|
|
||||||
GOARCH=amd64 make build
|
GOOS=linux GOARCH=amd64 make build
|
||||||
GOARCH=arm make build
|
GOOS=linux GOARCH=arm make build
|
||||||
RELEASE=prod make build
|
|
||||||
RELEASE=cloud make build
|
|
||||||
|
|
||||||
@echo "\n🟢 All builds completed and available at ./bin/ \n"
|
@echo "\n🟢 All builds completed and available at ./bin/ \n"
|
||||||
|
|
||||||
|
@ -62,6 +60,10 @@ test:
|
||||||
test-with-coverage:
|
test-with-coverage:
|
||||||
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
|
run:
|
||||||
|
@echo "\n🚀 Running edgeboxctl\n"
|
||||||
|
./bin/edgeboxctl-${GOOS}-${GOARCH}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo "📦 Installing edgeboxctl service (${RELEASE}) for ${GOOS} (${GOARCH})\n"
|
@echo "📦 Installing edgeboxctl service (${RELEASE}) for ${GOOS} (${GOARCH})\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue