-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
120 lines (117 loc) · 2.63 KB
/
Taskfile.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
# Using task(https://taskfile.dev)
version: '3'
vars:
WEBSERVE_VERSION: 1.1
tasks:
default:
cmds:
- echo "Good Evening!"
silent: true
tidyup:
desc: Clean up the code and modfile
cmds:
- go mod tidy
- go fmt
silent: true
windows-amd64:
desc: build for amd64 windows
env:
GOOS: "windows"
GOARCH: "amd64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-windows-amd64.exe
silent: true
windows-arm:
desc: build for arm windows
env:
GOOS: "windows"
GOARCH: "arm"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-windows-arm.exe
silent: true
windows-arm64:
desc: build for arm64 windows
env:
GOOS: "windows"
GOARCH: "arm64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-windows-arm64.exe
silent: true
linux-amd64:
desc: build for amd64 linux
env:
GOOS: "linux"
GOARCH: "amd64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-linux-amd64.exe
silent: true
linux-arm:
desc: build for arm linux
env:
GOOS: "linux"
GOARCH: "arm"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-linux-arm.exe
silent: true
linux-arm64:
desc: build for arm64 linux
env:
GOOS: "linux"
GOARCH: "arm64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-linux-arm64.exe
silent: true
mac-amd64:
desc: build for amd64 mac
env:
GOOS: "darwin"
GOARCH: "amd64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-mac-amd64.exe
silent: true
mac-arm:
desc: build for arm mac
env:
GOOS: "darwin"
GOARCH: "arm"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-mac-arm.exe
silent: true
mac-arm64:
desc: build for arm64 mac
env:
GOOS: "darwin"
GOARCH: "arm64"
cmds:
- go build -o bin/webserve-{{.WEBSERVE_VERSION}}-mac-arm64.exe
silent: true
resetenv:
desc: reset enviorment varibles to my windows laptop default
env:
GOOS: "windows"
GOARCH: "amd64"
cmds:
- echo '$GOOS=windows,$GOARCH=amd64'
- echo 'done!'
buildall:
desc: build for all supported targets
cmds:
- task windows-amd64
- task windows-arm
- task windows-arm64
- task linux-amd64
- task linux-arm
- task linux-arm64
- task mac-amd64
- task mac-arm
- task mac-arm64
- task resetenv
clean:
desc: clean up enviorment
cmds:
- rmdir -force bin
release:
desc: setup for a release
cmds:
- task tidyup
- task buildall