commit 35eaae34a9a2bfb0006c9432e44cd0340f36d4ce parent ee1699a022d92fe508651a7519f4805eefa51d67 Author: Jack Mordaunt <jackmordaunt.dev@gmail.com> Date: Tue, 13 Feb 2024 10:28:28 +0800 task: add basic task jobs Including the ability to spit out a binary size svg. Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com> Diffstat:
| A | taskfile.yml | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/taskfile.yml b/taskfile.yml @@ -0,0 +1,20 @@ +version: '3' + +tasks: + + build-get: + sources: + - ./**/**.go + generates: + - ./example/get/get.exe + cmds: + - tinygo build -o ./example/get/get.exe ./example/get + + binsize: + deps: [build-get] + sources: + - ./example/get/get.exe + generates: + - ./example/get/binsize.svg + cmds: + - go tool nm -size ./example/get/get.exe | go-binsize-treemap > ./example/get/binsize.svg