-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
60 lines (50 loc) · 1.24 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
dotenv: ['.env']
tasks:
docs:
desc: Open the documentation
cmds:
- mdbook serve --open docs --hostname 0.0.0.0
analyse:
desc: Analyse the code
cmds:
- cargo clippy --all-targets --all-features -- -D warnings
build:
desc: Build kopegen CLI
cmds:
- rustup target add {{.TARGET_ARCH}}
- cargo build --verbose {{if eq .RELEASE "true"}}--release {{end}}{{if .TARGET_ARCH}}--target {{.TARGET_ARCH}}{{end}}
requires:
vars:
- TARGET_ARCH
run:
desc: Run the CLI
cmds:
- cargo run --package kopgen {{.CLI_ARGS}}
test:
desc: Test the project
cmds:
- cargo test --all-features --verbose
test-cli-output:
desc: Test the CLI output
cmds:
- cargo run --package kopgen init temp
pre-release:
desc: Pre-release the project
cmds:
- semantic-release --tag-format 'v${version}-rc' --prerelease rc {{.CLI_ARGS}}
env:
CI: true
TARGET_ARCH: aarch64-unknown-linux-musl
release:
desc: Release the project
cmds:
- semantic-release {{.CLI_ARGS}}
env:
CI: true
TARGET_ARCH: aarch64-unknown-linux-musl
clean:
desc: Clean the project
cmds:
- rm -rf temp
- cargo clean