aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/metrics.yaml2
-rw-r--r--xtask/src/metrics.rs5
2 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml
index 58f369422..4974867f6 100644
--- a/.github/workflows/metrics.yaml
+++ b/.github/workflows/metrics.yaml
@@ -11,7 +11,7 @@ env:
11 RUSTUP_MAX_RETRIES: 10 11 RUSTUP_MAX_RETRIES: 10
12 12
13jobs: 13jobs:
14 rustdoc: 14 metrics:
15 runs-on: ubuntu-latest 15 runs-on: ubuntu-latest
16 16
17 steps: 17 steps:
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(())