-
Notifications
You must be signed in to change notification settings - Fork 18
/
Taskfile.yml
108 lines (107 loc) · 2.21 KB
/
Taskfile.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3'
tasks:
clean:
cmds:
- rm -rf dist
build:
label: build-{{.TASK}}
vars:
VERSION:
sh: git symbolic-ref -q --short HEAD || git describe --tags --exact-match
BUILD_COMMIT:
sh: git rev-parse HEAD
BUILD_DATE:
sh: date "+%F %T"
cmds:
- |
GOOS={{.GOOS}} GOARCH={{.GOARCH}} GOARM={{.GOARM}} GOMIPS={{.GOMIPS}} \
go build -trimpath -o dist/gitflow-toolkit-{{.TASK}} -ldflags \
"-w -s -X main.version={{.VERSION}} -X main.buildCommit={{.BUILD_COMMIT}} -X 'main.buildDate=${BUILD_DATE}'"
linux-386:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: 386
}
linux-amd64:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: amd64
}
linux-amd64-v3:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: amd64,
GOAMD64: v3
}
linux-armv5:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: arm,
GOARM: 5
}
linux-armv6:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: arm,
GOARM: 6
}
linux-armv7:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: arm,
GOARM: 7
}
linux-arm64:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: arm64
}
darwin-amd64:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: darwin,
GOARCH: amd64
}
darwin-arm64:
cmds:
- task: build
vars: {
TASK: "{{.TASK}}",
GOOS: darwin,
GOARCH: arm64
}
default:
cmds:
- task: clean
- task: linux-386
- task: linux-amd64
- task: linux-amd64-v3
- task: linux-armv5
- task: linux-armv6
- task: linux-armv7
- task: linux-arm64
- task: darwin-amd64
- task: darwin-arm64