aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-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(())