mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Add a no-op compare_perf workflow (#41605)
Testing PR for @zed-zippy Release Notes: - N/A
This commit is contained in:
parent
977856407e
commit
c2537fad43
3 changed files with 37 additions and 0 deletions
13
.github/workflows/compare_perf.yml
vendored
Normal file
13
.github/workflows/compare_perf.yml
vendored
Normal file
|
|
@ -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
|
||||
|
|
@ -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()))?;
|
||||
|
|
|
|||
22
tooling/xtask/src/tasks/workflows/compare_perf.rs
Normal file
22
tooling/xtask/src/tasks/workflows/compare_perf.rs
Normal file
|
|
@ -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()),
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue