aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-24 19:24:14 +0100
committerAleksey Kladov <[email protected]>2020-07-24 19:34:30 +0100
commitae3506d002c5b242a16f4f7dcbbbfa9d9e8e45ae (patch)
treea1788e7ba37f6f7f68e9328d750cd460c8e9e133 /xtask
parent80d6bdbb30cb6eb154286d9e96cf2e917905a9fd (diff)
Fix another name
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/metrics.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index 343e6e5aa..42d91cf08 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -20,7 +20,8 @@ pub fn run_metrics() -> Result<()> {
20 let _d = pushd("target/metrics"); 20 let _d = pushd("target/metrics");
21 let mut file = std::fs::OpenOptions::new().append(true).open("metrics.json")?; 21 let mut file = std::fs::OpenOptions::new().append(true).open("metrics.json")?;
22 writeln!(file, "{}", metrics.json())?; 22 writeln!(file, "{}", metrics.json())?;
23 run!("git commit --author='GitHub Action <>' -am'📈' ")?; 23 run!("git add .")?;
24 run!("git commit --author='GitHub Action <>' --message='📈' ")?;
24 25
25 if let Ok(actor) = env::var("GITHUB_ACTOR") { 26 if let Ok(actor) = env::var("GITHUB_ACTOR") {
26 let token = env::var("GITHUB_TOKEN").unwrap(); 27 let token = env::var("GITHUB_TOKEN").unwrap();
@@ -39,7 +40,7 @@ impl Metrics {
39 rm_rf("./target/release")?; 40 rm_rf("./target/release")?;
40 41
41 let build = Instant::now(); 42 let build = Instant::now();
42 run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; 43 // run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?;
43 let build = build.elapsed(); 44 let build = build.elapsed();
44 self.report("build", build.as_millis() as u64, "ms"); 45 self.report("build", build.as_millis() as u64, "ms");
45 Ok(()) 46 Ok(())