-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (42 loc) · 1.1 KB
/
Taskfile.yml
File metadata and controls
49 lines (42 loc) · 1.1 KB
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
version: '3'
# This is like a Makefile but for https://github.com/go-task/task which is a cross-platform Make written in Go.
# To run it, install Task (https://taskfile.dev/installation/) then run `task release`
tasks:
release:
desc: Run `go tool dist list` to list platforms available in your system
cmds:
- task: release-osx
- task: release-linux
- task: release-windows
release-osx:
cmds:
- go build -o ./release/news-osx64
env:
CGO_ENABLED: '0'
GOOS: darwin
GOARCH: amd64
release-linux:
cmds:
- go build -o ./release/news-linux64
env:
CGO_ENABLED: '0'
GOOS: linux
GOARCH: amd64
release-windows:
cmds:
- go build -o ./release/news-win64.exe
env:
CGO_ENABLED: '0'
GOOS: windows
GOARCH: amd64
install-deps:
desc:
cmds:
- go get ./...
test:
cmds:
- go test ./...
gdrive:
desc: Example usage with Google Drive on Windows with verbose output
cmds:
- go run main.go -wait 30 -dir "D:/gdrive/news"