Skip to content

Commit

Permalink
chore: temporarily test with Wasmtime
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Volosatovs <[email protected]>
Signed-off-by: Richard Zak <[email protected]>
  • Loading branch information
2 people authored and npmccallum committed Nov 7, 2022
1 parent b47ca81 commit 5fb350a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[target.wasm32-wasi]
rustflags = ["--cfg", "tokio_unstable"]
runner = ["enarx", "run", "--wasmcfgfile", "Enarx.toml"]
runner = ["wasmtime", "run", "--env", "FD_COUNT=4", "--tcplisten", "0.0.0.0:3000", "--"]
# Put this back when Enarx is able to receive TCP configuation from the command line.
# runner = ["enarx", "run", "--wasmcfgfile", "Enarx.toml"]
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- name: Download enarx
run: curl -sLO https://github.com/enarx/enarx/releases/download/v0.6.4/enarx-0.6.4-1_amd64.deb
- name: Install enarx
run: sudo dpkg -i enarx-0.6.4-1_amd64.deb
# Put this back when Enarx is able to receive TCP configuation from the command line.
#- name: Download enarx
# run: curl -sLO https://github.com/enarx/enarx/releases/download/v0.6.4/enarx-0.6.4-1_amd64.deb
#- name: Install enarx
# run: sudo dpkg -i enarx-0.6.4-1_amd64.deb
- name: Download Wasmtime
run: cargo install wasmtime-cli
- name: Check wasmtime version
run: wasmtime --version
- name: cargo test
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 5fb350a

Please sign in to comment.