-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
70 lines (60 loc) · 1.73 KB
/
Taskfile.yml
File metadata and controls
70 lines (60 loc) · 1.73 KB
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
version: '3'
vars:
SRC: src/main.bl
BIN: build/main
INSTALL_PATH: ~/.local/bin/br
tasks:
build:
desc: Build the bridge binary
cmds:
- blink build {{.SRC}}
sources:
- src/*.bl
generates:
- "{{.BIN}}"
install:
desc: Build and install br to ~/.local/bin/
deps: [build]
cmds:
- cp {{.BIN}} {{.INSTALL_PATH}}
- chmod +x {{.INSTALL_PATH}}
- echo "Installed br to {{.INSTALL_PATH}}"
check:
desc: Typecheck all source files
cmds:
- blink check {{.SRC}}
clean:
desc: Remove build artifacts
cmds:
- rm -f {{.BIN}}
test:
desc: Run blink tests
cmds:
- blink test
ci:
desc: Run all checks (typecheck + build)
cmds:
- task: check
- task: build
dev:
desc: Build and run with args (usage -- task dev -- add "my task")
deps: [build]
cmds:
- "{{.BIN}} {{.CLI_ARGS}}"
release:
desc: Cross-compile release binaries to dist/
cmds:
- mkdir -p dist
- blink build {{.SRC}} --release -T linux -o dist/br-linux-amd64
- blink build {{.SRC}} --release -T linux-arm64 -o dist/br-linux-arm64
- blink build {{.SRC}} --release -T macos -o dist/br-darwin-amd64
- blink build {{.SRC}} --release -T macos-arm64 -o dist/br-darwin-arm64
- cd dist && sha256sum br-* > checksums.txt
- echo "Release binaries in dist/"
bump:
desc: "Bump version (usage: task bump -- 0.2.0)"
cmds:
- sed -i 's/^version = ".*"/version = "{{.CLI_ARGS}}"/' blink.toml
- sed -i 's/set_version(p, ".*")/set_version(p, "{{.CLI_ARGS}}")/' src/main.bl
- 'sed -i ''s/"version": ".*"/"version": "{{.CLI_ARGS}}"/'' .claude-plugin/plugin.json'
- echo "Bumped to v{{.CLI_ARGS}}"