Skip to content

Commit 14ec47b

Browse files
committed
task
1 parent 6452bc4 commit 14ec47b

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/main.wasm

Taskfile.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# https://taskfile.dev
2+
version: "3"
3+
4+
tasks:
5+
build:
6+
cmds:
7+
- firefly_cli build
8+
- cp $(firefly_cli vfs)/roms/demo/lua-triangle/_bin main.wasm
9+
10+
release:
11+
desc: build and publish release
12+
cmds:
13+
- task: build
14+
- test {{.CLI_ARGS}}
15+
- grep -F '"{{.CLI_ARGS}}"' Cargo.toml
16+
- git tag {{.CLI_ARGS}}
17+
- git push
18+
- git push --tags
19+
- gh release create --generate-notes {{.CLI_ARGS}}
20+
- gh release upload {{.CLI_ARGS}} main.wasm
21+
22+
format:
23+
desc: "run code formatters"
24+
cmds:
25+
- cargo fmt
26+
lint:
27+
desc: "run linters"
28+
cmds:
29+
- cargo clippy --target wasm32-unknown-unknown
30+
all:
31+
cmds:
32+
- task: format
33+
- task: lint
34+
default:
35+
- task: all

0 commit comments

Comments
 (0)