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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# =============================================================================
# Rakefile.toml — cargo-matrix build pipeline
#
# Quick reference:
#
# cargo rake default (most: fmt→clippy→build→test→coverage)
# cargo rake most ^test ^coverage skip tests and coverage
# cargo rake most ^coverage skip coverage only
# cargo rake most clean add cargo clean
# cargo rake all everything (puc + most + audit + clean)
# cargo rake daily alias for all (morning full-pipeline run)
# cargo rake audit cargo-audit advisory check (CI-gated on release tags, not `most`)
# cargo rake release run the repomon release pipeline (see scripts/release/release.fish)
# =============================================================================
# ---------------------------------------------------------------------------
# tools
# ---------------------------------------------------------------------------
[]
= "cargo-matrix"
= ["cargo", "matrix", "--version"]
= ["cargo", "install", "cargo-matrix", "--force", "--locked"]
= true
[]
= "cargo-nextest"
= ["cargo", "nextest", "--version"]
= ["cargo", "install", "cargo-nextest", "--force", "--locked"]
= true
[]
= "cargo-llvm-cov"
= ["cargo", "llvm-cov", "--version"]
= ["cargo", "install", "cargo-llvm-cov", "--force", "--locked"]
= true
[]
= "cargo-audit"
= ["cargo", "audit", "--version"]
= ["cargo", "install", "cargo-audit", "--force", "--locked"]
= true
[]
= "The 'puc' fish function is required to run this target"
# ---------------------------------------------------------------------------
# update
# ---------------------------------------------------------------------------
[]
= ["puc"]
= false
[[]]
= "puc"
= ["linux"]
= "puc"
# ---------------------------------------------------------------------------
# fmt
# ---------------------------------------------------------------------------
[[]]
= "fmt"
= ["cargo", "fmt"]
[[]]
= "fmt check"
= ["cargo", "fmt", "--all", "--", "--check"]
# ---------------------------------------------------------------------------
# clippy
# ---------------------------------------------------------------------------
[]
= ["matrix"]
[[]]
= "clippy"
= ["cargo", "matrix", "clippy", "--all-targets", "--", "-Dwarnings"]
# ---------------------------------------------------------------------------
# build
# ---------------------------------------------------------------------------
[]
= ["matrix"]
[[]]
= "build"
= ["cargo", "matrix", "build"]
# ---------------------------------------------------------------------------
# test
# ---------------------------------------------------------------------------
[]
= ["build"]
= ["matrix", "nextest"]
[[]]
= "nextest"
= ["cargo", "matrix", "nextest", "run"]
# ---------------------------------------------------------------------------
# coverage
# ---------------------------------------------------------------------------
[]
= ["test"]
= ["matrix", "llvm-cov", "nextest"]
[[]]
= "coverage"
= ["cargo", "matrix", "-F", "unstable", "llvm-cov", "nextest", "--no-report"]
[[]]
= "lcov.info"
= ["cargo", "llvm-cov", "report", "--lcov", "--output-path", "lcov.info"]
[[]]
= "html"
= ["cargo", "llvm-cov", "report", "--html"]
# ---------------------------------------------------------------------------
# audit
# ---------------------------------------------------------------------------
# Not part of `most`/`default` -- gated in CI on release-tag pushes only
# (see .repomon/audit.toml), same as every repomon-converted sibling. Still
# included in `all`/`daily` for a full local pre-release sweep.
[]
= ["audit"]
[[]]
= "audit"
= ["cargo", "audit", "--deny", "warnings"]
# ---------------------------------------------------------------------------
# release
# ---------------------------------------------------------------------------
# Orchestrates the repomon release pipeline (tag push -> remote builds ->
# publish). Linux-only: it's only ever run from this machine. Not part of
# `most`/`all`/`daily` -- invoked standalone after pushing a release tag.
[[]]
= "release"
= ["linux"]
= "fish scripts/release/release.fish"
# ---------------------------------------------------------------------------
# clean
# ---------------------------------------------------------------------------
[[]]
= "clean"
= ["cargo", "clean"]
[[]]
= "rm lcov.info"
= "rm -f lcov.info"
= "rm -f lcov.info"
= "Remove-Item -Force lcov.info -ErrorAction Ignore"
# ---------------------------------------------------------------------------
# aggregates
# ---------------------------------------------------------------------------
[]
= ["fmt", "clippy", "build", "test", "coverage"]
[]
= ["puc", "fmt", "clippy", "audit", "build", "test", "coverage", "clean"]
[]
= ["all"]
[]
= ["most"]