Skip to content

Commit

Permalink
Merge pull request #1323 from stlankes/ci
Browse files Browse the repository at this point in the history
extend CI to test the wasmtime-demo
  • Loading branch information
mkroening authored Jul 18, 2024
2 parents 3021646 + 625ab4a commit 4da94e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ jobs:
- uses: mkroening/rust-toolchain-toml@main
- run: rustup component add llvm-tools
working-directory: .
- run: rustup target add wasm32-wasi
working-directory: .
- uses: mkroening/rust-toolchain-toml@main
with:
toolchain-file: 'kernel/rust-toolchain.toml'
Expand All @@ -184,6 +186,8 @@ jobs:
- run: cargo +stable install cargo-careful
if: matrix.profile == 'dev'
- run: cargo xtask ci qemu --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package hello_world
- run: cargo xtask ci qemu --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package wasmtime-demo --features ci
if: matrix.arch != 'riscv64'
- run: cargo xtask ci qemu --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package hello_world --no-default-features --microvm
if: matrix.arch == 'x86_64'
- run: cargo xtask ci qemu --arch ${{ matrix.arch }} --profile ${{ matrix.profile }} --package rusty_demo --features fs --virtiofsd
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl Qemu {
_ => {}
}

let status = qemu.0.wait_timeout(Duration::from_secs(60 * 2))?;
let status = qemu.0.wait_timeout(Duration::from_secs(60 * 6))?;
let Some(status) = status else {
bail!("QEMU timeout")
};
Expand Down Expand Up @@ -217,7 +217,7 @@ impl Qemu {
memory *= 4;
}
if self.build.cargo_build.artifact.profile() == "dev" {
memory *= 4;
memory *= 16;
}
memory *= self.smp;
if self.netdev.is_some() {
Expand Down

0 comments on commit 4da94e9

Please sign in to comment.