forked from tinygo-org/gobadge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
36 lines (30 loc) · 1.01 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
version: '3'
silent: true
# If you are getting permission errors, have a look at this guide ASAP :)
# https://tinygo.org/docs/guides/tinygo-flash-errors/
tasks:
default:
cmds:
- sudo tinygo flash -target pybadge .
flash:
vars:
CONF: '{{default "tinygo" .CONF}}' # tinygo / fathom / gcuk22 / gcuk23
NAME: '{{default "TALHA ALTINEL" .NAME}}'
SLOGAN1: '{{default "Good Things Come" .SLOGAN1}}'
SLOGAN2: '{{default "In Small Packages" .SLOGAN2}}'
cmds:
- sudo chmod a+rw /dev/ttyACM0 # https://tinygo.org/docs/guides/tinygo-flash-errors/
- go run cmd/main.go -conf={{.CONF}}
- tinygo flash -size short -target pybadge -ldflags="-X main.Name='{{.NAME}}' -X main.Slogan1='{{.SLOGAN1}}' -X main.Slogan2='{{.SLOGAN2}}'" .
flash-office:
cmds:
- task: flash
vars:
CONF: fathom
SLOGAN1: "Good PRs Come"
SLOGAN2: "With Small Diffs"
flash-gophercon:
cmds:
- task: flash
vars:
CONF: gcuk23