Skip to content

Commit

Permalink
ci: simplify memory calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Oct 28, 2024
1 parent 2060d1d commit 1e83dc2
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,7 @@ impl Qemu {
}

fn memory(&self) -> usize {
let mut memory = 32usize;
if self.build.cargo_build.artifact.arch == Arch::Riscv64 {
memory *= 4;
}
if self.build.cargo_build.artifact.profile() == "dev" {
memory *= 16;
}
memory *= self.smp;
if self.netdev.is_some() {
memory = memory.max(1024);
}
if self.build.cargo_build.artifact.arch == Arch::Aarch64 {
memory = memory.max(256);
}
memory = memory.max(64);
memory
512
}

fn memory_args(&self) -> [String; 2] {
Expand Down

0 comments on commit 1e83dc2

Please sign in to comment.