From c2537fad436221650509a95c5961cfdddf1c1b73 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 30 Oct 2025 17:28:03 -0600 Subject: [PATCH] Add a no-op compare_perf workflow (#41605) Testing PR for @zed-zippy Release Notes: - N/A --- .github/workflows/compare_perf.yml | 13 +++++++++++ tooling/xtask/src/tasks/workflows.rs | 2 ++ .../xtask/src/tasks/workflows/compare_perf.rs | 22 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .github/workflows/compare_perf.yml create mode 100644 tooling/xtask/src/tasks/workflows/compare_perf.rs diff --git a/.github/workflows/compare_perf.yml b/.github/workflows/compare_perf.yml new file mode 100644 index 0000000000000000000000000000000000000000..3f30ff1ec54afb88bc27557c89d189a8e1e21dff --- /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 0fd17088c14d87812e49809461ea97d4f2456960..f29a590ca19d8be4781aaba9d7fd23d90933f34c 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 0000000000000000000000000000000000000000..b46a3bb0ca1329906a8f0445e55c4edf5059cb95 --- /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()), + ) +}