Skip to content

Commit fc0d6a2

Browse files
xtask: Add auto-release action
1 parent 7074902 commit fc0d6a2

File tree

5 files changed

+412
-1
lines changed

5 files changed

+412
-1
lines changed

Cargo.lock

Lines changed: 194 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xtask/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ edition.workspace = true
77

88
[dependencies]
99
anyhow = "1.0.51"
10+
cargo_metadata = "0.18.1"
1011
clap = { version = "4.4.0", default-features = false, features = ["derive", "help", "usage", "std"] }
12+
crates-index = "2.3.0"
1113
fatfs = { version = "0.3.6", default-features = false, features = ["alloc", "std"] }
1214
fs-err = "2.6.0"
1315
heck = "0.4.0"
@@ -24,5 +26,5 @@ sha2 = "0.10.6"
2426
syn = { version = "2.0.0", features = ["full"] }
2527
tar = "0.4.38"
2628
tempfile = "3.6.0"
29+
ureq = { version = "2.8.0", features = ["http-interop"] }
2730
walkdir = "2.4.0"
28-
ureq = "2.8.0"

xtask/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mod opt;
88
mod pipe;
99
mod platform;
1010
mod qemu;
11+
mod release;
1112
mod tpm;
1213
mod util;
1314

@@ -314,5 +315,6 @@ fn main() -> Result<()> {
314315
Action::Run(qemu_opt) => run_vm_tests(qemu_opt),
315316
Action::Test(test_opt) => run_host_tests(test_opt),
316317
Action::Fmt(fmt_opt) => run_fmt_project(fmt_opt),
318+
Action::AutoRelease(_) => release::auto_release(),
317319
}
318320
}

xtask/src/opt.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub enum Action {
7474
Run(QemuOpt),
7575
Test(TestOpt),
7676
Fmt(FmtOpt),
77+
AutoRelease(AutoReleaseOpt),
7778
}
7879

7980
/// Build all the uefi packages.
@@ -202,3 +203,9 @@ pub struct FmtOpt {
202203
#[clap(long, action)]
203204
pub check: bool,
204205
}
206+
207+
/// Run the auto-release process.
208+
///
209+
/// This is run by the `release` workflow.
210+
#[derive(Debug, Parser)]
211+
pub struct AutoReleaseOpt {}

0 commit comments

Comments
 (0)