-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
executable file
·162 lines (118 loc) · 4.13 KB
/
Copy pathMakefile.toml
File metadata and controls
executable file
·162 lines (118 loc) · 4.13 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
extend = [
{ path = "./build/common-tasks.toml" },
{ path = "./build/dist-tasks.toml" },
{ path = "./build/docker-tasks.toml", optional = true },
{ path = "./build/watch-tasks.toml", optional = true },
{ path = "./build/typst-tasks.toml", optional = true },
{ path = "./build/release-tasks.toml", optional = true },
]
# Name of output if/when calling dist tasks, should match the cargo bin output
env.PROJECT_NAME = "chapterize" # "cargo_output_binary_name_for_PROJECT_NAME"
# Default profile to use for builds during dist related tasks
env.SLEEP_TIME = "15"
# GitHub / repo metadata (set by setup.sh during template init)
env.GITHUB_USER = "mrdwarf7"
env.REPO_NAME = "chapterize.rs" # GitHub repo name (with .rs)
env.GITHUB_URL = "https://github.com/mrdwarf7/chapterize.rs"
# Changelog tool configuration
env.CHANGELOG_TOOL = "git-cliff"
env.CHANGELOG_ARGS_BASE = "--repository ${GITHUB_URL} --commit-path . --sort newest --strip all --with-commit"
# Identifies the first argument passed after `cargo` as, or inplace of `build`.
# ie: `cargo build <...zyx...>` vs. `cargo zigbuild <...xyz...>`
env.BUILD_ARG = "build"
# env.BUILD_ARG = "zigbuild"
## START Full sweeps/aliases
[tasks.b]
run_task = { name = ["build"], parallel = false }
[tasks.br]
run_task = { name = ["build_release"], parallel = false }
[tasks.ba]
run_task = { name = [
"build_workspace",
"build",
"build_release_workspace",
"build_release",
], parallel = false }
[tasks.a]
run_task = { name = [
"build_workspace",
"build",
"test",
"build_release_workspace",
"build_release",
"test_all",
], parallel = false }
[tasks.A]
description = "Full verification sweep for the repository."
run_task = { name = ["format", "check", "clippy", "a"], parallel = false }
[tasks.r]
run_task = { name = ["run"], parallel = false }
[tasks.rr]
run_task = { name = ["run_release"], parallel = false }
[tasks.bw]
run_task = { name = ["build_workspace"], parallel = false }
[tasks.brw]
run_task = { name = ["build_release_workspace"], parallel = false }
[tasks.t]
run_task = { name = ["test"], parallel = false }
[tasks.ta]
run_task = { name = ["test_all"], parallel = false }
[tasks.tnc]
run_task = { name = ["test_no_capture"], parallel = false }
[tasks.tanc]
run_task = { name = ["test_all_no_capture"], parallel = false }
[tasks.f]
run_task = { name = ["format"], parallel = false }
[tasks.c]
run_task = { name = ["check"], parallel = false }
[tasks.cp]
run_task = { name = ["clippy"], parallel = false }
[tasks.cl]
run_task = { name = ["clean"], parallel = false }
[tasks.reset]
run_task = { name = ["clean", "a"], parallel = false }
[tasks.envs]
run_task = { name = "print_all", parallel = false }
[tasks.up]
run_task = { name = [
"a",
"docker_start",
"sleep",
"run_as_project",
], parallel = false }
[tasks.down]
run_task = { name = ["docker_stop"], parallel = false }
[tasks.dist]
env.PROFILE = "release"
run_task = { name = ["build_release_dist"], parallel = false }
## END Full sweeps/aliases
## START release tasks (delegated to release-tasks.toml)
# These are top-level aliases that call into release-tasks.toml
[tasks.bump]
description = "Bump patch version, update changelog, commit + tag (use bump_minor/bump_major for others)"
run_task = { name = ["bump_patch"], parallel = false }
[tasks.bump_patch]
run_task = { name = ["bump_patch"], parallel = false }
[tasks.bump_minor]
run_task = { name = ["bump_minor"], parallel = false }
[tasks.bump_major]
run_task = { name = ["bump_major"], parallel = false }
[tasks.changelog]
run_task = { name = ["changelog"], parallel = false }
[tasks.changelog_check]
run_task = { name = ["changelog_check"], parallel = false }
## END release tasks
## START typst tasks
[tasks.typb]
run_task = { name = ["typst_build"], parallel = false }
# [tasks.typcl]
# run_task = { name = ["typst_compile"], parallel = false }
[tasks.typw]
run_task = { name = ["typst_watch"], parallel = false }
[tasks.typnw]
run_task = { name = ["typst_watch_no_follow"], parallel = false }
[tasks.typc]
run_task = { name = ["typst_clean"], parallel = false }
[tasks.typcl]
run_task = { name = ["typst_clean"], parallel = false }
## END typst tasks