Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add a no-op compare_perf workflow (#41605)

Conrad Irwinc2537fad4362
diff --git a/.github/workflows/compare_perf.yml b/.github/workflows/compare_perf.yml
new file mode 100644
index 00000000000..3f30ff1ec54
--- /dev/null
+++ b/.github/workflows/compare_perf.yml
@@ -0,0 +1,13 @@
+# Generated from xtask::workflows::compare_perf
+# Rebuild with `cargo xtask workflows`.
+name: compare_perf
+on:
+ workflow_dispatch: {}
+jobs:
+ run_perf:
+ runs-on: namespace-profile-2x4-ubuntu-2404
+ steps:
+ - name: steps::checkout_repo
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
+ with:
+ clean: false
diff --git a/tooling/xtask/src/tasks/workflows.rs b/tooling/xtask/src/tasks/workflows.rs
index 0fd17088c14..f29a590ca19 100644
--- a/tooling/xtask/src/tasks/workflows.rs
+++ b/tooling/xtask/src/tasks/workflows.rs
@@ -3,6 +3,7 @@ use clap::Parser;
use std::fs;
use std::path::Path;
+mod compare_perf;
mod danger;
mod nix_build;
mod release_nightly;
@@ -24,6 +25,7 @@ pub fn run_workflows(_: GenerateWorkflowArgs) -> Result<()> {
("run_bundling.yml", run_bundling::run_bundling()),
("release_nightly.yml", release_nightly::release_nightly()),
("run_tests.yml", run_tests::run_tests()),
+ ("compare_perf.yml", compare_perf::compare_perf()),
];
fs::create_dir_all(dir)
.with_context(|| format!("Failed to create directory: {}", dir.display()))?;
diff --git a/tooling/xtask/src/tasks/workflows/compare_perf.rs b/tooling/xtask/src/tasks/workflows/compare_perf.rs
new file mode 100644
index 00000000000..b46a3bb0ca1
--- /dev/null
+++ b/tooling/xtask/src/tasks/workflows/compare_perf.rs
@@ -0,0 +1,22 @@
+use gh_workflow::*;
+
+use crate::tasks::workflows::{
+ runners,
+ steps::{self, NamedJob, named},
+};
+
+/// Generates the danger.yml workflow
+pub fn compare_perf() -> Workflow {
+ let run_perf = run_perf();
+ named::workflow()
+ .on(Event::default().workflow_dispatch(WorkflowDispatch::default()))
+ .add_job(run_perf.name, run_perf.job)
+}
+
+pub fn run_perf() -> NamedJob {
+ named::job(
+ Job::default()
+ .runs_on(runners::LINUX_SMALL)
+ .add_step(steps::checkout_repo()),
+ )
+}