Skip to content

Commit

Permalink
Merge pull request rust-osdev#1068 from rust-osdev/bishop-simplify-re…
Browse files Browse the repository at this point in the history
…lease

Use auto-release from crates.io to release
  • Loading branch information
nicholasbishop authored Mar 13, 2024
2 parents 79d6fa3 + 9e097c1 commit 71bc7c1
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 420 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo xtask auto-release
- run: |
cargo install auto-release
auto-release --condition body -p uefi-raw -p uefi-macros -p uefi -p uefi-services
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
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 71bc7c1

Please sign in to comment.