generated from FourteenBrush/odin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
36 lines (34 loc) · 928 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
version: "3"
silent: true
vars:
OUT_NAME: "jni"
COLLECTIONS: >-
-collection:deps=dependencies
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}}
test:
desc: "Executes all tests"
cmds:
- odin test tests {{.FLAGS}} {{.DEBUG_FLAGS}}