Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to a workspace #39

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo check
- run: cargo test
- run: cargo fmt -- --check
- run: cargo clippy -- -D warnings
- run: cargo check --workspace
- run: cargo test --workspace
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace -- -D warnings
16 changes: 8 additions & 8 deletions Cargo.lock

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

13 changes: 5 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[package]
name = "ovmf-prebuilt"
version = "0.1.0"
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
edition = "2021"
[workspace]
members = ["build-edk2"]
resolver = "2"

[dependencies]
anyhow = "1.0.71"
clap = { version = "4.2.7", features = ["derive"] }
[workspace.package]
edition = "2021"
9 changes: 9 additions & 0 deletions build-edk2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "build-edk2"
version = "0.0.0"
publish = false
edition.workspace = true

[dependencies]
anyhow = "1.0.0"
clap = { version = "4.0.0", features = ["derive"] }
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.rs → build-edk2/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn build_tarball(opt: &Opt, release: &Release) -> Result<PathBuf> {
&format!("git_tag={}", release.edk2_git_tag),
"--build-arg",
&format!("bin_dir={}-bin", release.prebuilt_git_tag),
".",
"build-edk2",
]);
println!("run: {cmd:?}");
let status = cmd.status()?;
Expand Down