1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Build.dependencies({"git", "make", "rustc", "cargo"})
Build.metric(
"nightly version",
string.gsub(Build.check_output({"rustc", "--version"}).stdout, '^%s*(.*)%s*$', '%1')
)
Step.start("crate")
Step.push("build")
Build.run({"cargo", "build"})
Step.advance("test")
Build.run({"cargo", "test"}, {name="test stdlib/fmt"})
Build.run({"cargo", "test", "--no-default-features"}, {name="test nostdlib/fmt"})
Build.run({"cargo", "build", "--release"}, {cwd="differential-tests", name="build capstone differential"})
|