Skip to content

Commit

Permalink
xtask: Add auto-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Nov 12, 2023
1 parent 544ce0c commit 7321644
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 1 deletion.
194 changes: 194 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ edition.workspace = true

[dependencies]
anyhow = "1.0.51"
cargo_metadata = "0.18.1"
clap = { version = "4.4.0", default-features = false, features = ["derive", "help", "usage", "std"] }
crates-index = "2.3.0"
fatfs = { version = "0.3.6", default-features = false, features = ["alloc", "std"] }
fs-err = "2.6.0"
heck = "0.4.0"
Expand All @@ -24,5 +26,5 @@ sha2 = "0.10.6"
syn = { version = "2.0.0", features = ["full"] }
tar = "0.4.38"
tempfile = "3.6.0"
ureq = { version = "2.8.0", features = ["http-interop"] }
walkdir = "2.4.0"
ureq = "2.8.0"
2 changes: 2 additions & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod opt;
mod pipe;
mod platform;
mod qemu;
mod release;
mod tpm;
mod util;

Expand Down Expand Up @@ -314,5 +315,6 @@ fn main() -> Result<()> {
Action::Run(qemu_opt) => run_vm_tests(qemu_opt),
Action::Test(test_opt) => run_host_tests(test_opt),
Action::Fmt(fmt_opt) => run_fmt_project(fmt_opt),
Action::AutoRelease(_) => release::auto_release(),
}
}
7 changes: 7 additions & 0 deletions xtask/src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub enum Action {
Run(QemuOpt),
Test(TestOpt),
Fmt(FmtOpt),
AutoRelease(AutoReleaseOpt),
}

/// Build all the uefi packages.
Expand Down Expand Up @@ -202,3 +203,9 @@ pub struct FmtOpt {
#[clap(long, action)]
pub check: bool,
}

/// Run the auto-release process.
///
/// This is run by the `release` workflow.
#[derive(Debug, Parser)]
pub struct AutoReleaseOpt {}
Loading

0 comments on commit 7321644

Please sign in to comment.