-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
80 lines (68 loc) · 1.46 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
tasks:
install:
cmds:
- pixi global install rattler-build # magic global install rattler-build
init:pixi:
cmds:
- pixi init .
# ref: https://pixi.sh/dev/tutorials/rust/#add-rust-dependencies
setup:pixi:
cmds:
- pixi add rust
- pixi task add build "cargo build"
pkg:
cmds:
- pixi {{.CLI_ARGS}}
run:v4:
aliases: [ "r4" ]
cmds:
- RUST_LOG=info cargo run --bin uuid_v4
dir: core/
run:v7:
aliases: [ "r7" ]
cmds:
- RUST_LOG=info cargo run --bin uuid_v7
dir: core/
test:
aliases: [ "t" ]
cmds:
- pixi run test
- RUST_LOG=info cargo test --lib
build:
aliases: [ "b" ]
cmds:
- pixi run build
- open output/
clean:build:
aliases: ["cb"]
cmds:
- task: clean
- task: build
release:
aliases: [ "rel" ]
cmds:
- pixi run release
#
# ref: https://taskfile.dev/usage/#looping-over-variables
#
publish:
aliases: [ "up", "pub", "pub:auto" ]
vars:
UP_PKGS:
sh: find . -name "*.conda" -type f
cmds:
- echo {{ .UP_PKGS }}
- for: { var: UP_PKGS }
cmd:
|
magic run rattler-build upload prefix -c "better-ffi" \
--api-key=$PREFIX_DEV_API_KEY \
{{.ITEM}}
- open https://prefix.dev/channels/better-ffi
dir: output/
clean:
aliases: [ "cl", 'del' ]
cmds:
- rm -rf output/
# - cargo clean