-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
38 lines (36 loc) · 1011 Bytes
/
Taskfile.yml
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
version: "3"
silent: true
vars:
OUT_NAME: "classreader"
COLLECTIONS: >-
"-collection:back=dependencies/back"
CHECK_FLAGS: "{{.COLLECTIONS}} -strict-style"
FLAGS: "-out:{{.OUT_NAME}} {{.CHECK_FLAGS}}"
DEBUG_FLAGS: "-debug -use-separate-modules"
tasks:
default:
desc: "Builds the project in release mode"
aliases: [build, release]
sources:
- src/**/*.odin
generates:
- "{{.OUT_NAME}}{{exeExt}}"
cmds:
- odin build src {{.FLAGS}} -o:speed {{.CLI_ARGS}}
debug:
desc: "Builds the project in debug mode"
cmds:
- odin build src {{.FLAGS}} {{.DEBUG_FLAGS}} {{.CLI_ARGS}}
run:
desc: "Runs the project"
cmds:
- odin run src {{.FLAGS}} {{.DEBUG_FLAGS}} -- {{.CLI_ARGS}}
check:
desc: "Checks the code for errors"
cmds:
- odin check src {{.CHECK_FLAGS}}
# - odin check tests {{.CHECK_FLAGS}} -no-entry-point TODO
test:
desc: "Executes all tests"
cmds:
- odin test tests {{.FLAGS}} {{.DEBUG_FLAGS}}