-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (32 loc) · 962 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
40 lines (32 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3"
vars:
BINARY_NAME: hyperstack-agent
tasks:
build:
desc: Build the linux/amd64 agent binary.
cmds:
- GOOS=linux GOARCH=amd64 go build -o bin/{{.BINARY_NAME}}-linux-amd64 ./cmd/agent
build-linux-amd64:
desc: Build the linux/amd64 agent binary.
cmds:
- GOOS=linux GOARCH=amd64 go build -o bin/{{.BINARY_NAME}}-linux-amd64 ./cmd/agent
build-linux-arm64:
desc: Build the linux/arm64 agent binary.
cmds:
- GOOS=linux GOARCH=arm64 go build -o bin/{{.BINARY_NAME}}-linux-arm64 ./cmd/agent
run:
desc: Run the agent locally.
cmds:
- go run ./cmd/agent
test:
desc: Run Go tests.
cmds:
- go test ./...
clean:
desc: Remove build artifacts.
cmds:
- rm -rf bin
static:
desc: Build a static linux/amd64 agent binary.
cmds:
- CGO_ENABLED=0 go build -trimpath -a -ldflags '-s -w -extldflags "-static"' -o bin/{{.BINARY_NAME}}-static ./cmd/agent