Skip to content

Commit

Permalink
xtask: Remove auto-release action
Browse files Browse the repository at this point in the history
The Github Actions release workflow now uses
https://crates.io/crates/auto-release instead, so we don't need the xtask
implementation anymore.

This reverts (with some minor edits) these commits:
* d8bb47b "xtask: Add auto-release action"
* ad75b2f "xtask: Add util::run_cmd_capture_stdout"
* 910bfc3 "xtask: rename Package::as_str to Package::name and make pub"
  • Loading branch information
nicholasbishop authored and phip1611 committed Mar 13, 2024
1 parent f15b456 commit 9e097c1
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 418 deletions.
194 changes: 0 additions & 194 deletions Cargo.lock

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

4 changes: 1 addition & 3 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ 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 @@ -26,5 +24,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: 1 addition & 1 deletion xtask/src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum Package {

impl Package {
/// Get package name.
pub fn name(self) -> &'static str {
fn name(self) -> &'static str {
match self {
Self::Uefi => "uefi",
Self::UefiApp => "uefi_app",
Expand Down
2 changes: 0 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mod opt;
mod pipe;
mod platform;
mod qemu;
mod release;
mod tpm;
mod util;

Expand Down Expand Up @@ -315,6 +314,5 @@ 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(),
}
}
8 changes: 0 additions & 8 deletions xtask/src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ pub enum Action {
Run(QemuOpt),
Test(TestOpt),
Fmt(FmtOpt),
AutoRelease(AutoReleaseOpt),
}

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

/// Run the auto-release process (should only be run by Github Action).
///
/// This is run by the `release.yml` workflow. It is not intended to be run
/// locally, and will exit immediately if `GITHUB_SHA` is not set.
#[derive(Debug, Parser)]
pub struct AutoReleaseOpt {}
Loading

0 comments on commit 9e097c1

Please sign in to comment.