-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
31 lines (27 loc) · 733 Bytes
/
Taskfile.yml
File metadata and controls
31 lines (27 loc) · 733 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
# https://taskfile.dev
version: '3'
tasks:
default:
desc: "List available tasks"
cmds:
- task -a
silent: true
build:
desc: "Build executables for release"
vars:
VERSION:
sh: git describe --tags --abbrev=0 || echo \(development\)
env:
CGO_ENABLED: 0
cmds:
- mkdir -p bin
- rm -f bin/*
- for:
matrix:
OS: ["windows", "linux", "darwin"]
ARCH: ["amd64", "arm64"]
cmd: >
GOOS={{.ITEM.OS}} GOARCH={{.ITEM.ARCH}}
go build -o
./bin/notifyrss_{{.ITEM.OS}}_{{.ITEM.ARCH}}{{ ternary ".exe" "" (eq .ITEM.OS "windows")}}
-trimpath -ldflags '-s -w -X main.version={{.VERSION}}' .