Skip to content

Commit 5fb350a

Browse files
rjzakrvolosatovs
authored andcommitted
chore: temporarily test with Wasmtime
Co-authored-by: Roman Volosatovs <[email protected]> Signed-off-by: Richard Zak <[email protected]>
1 parent b47ca81 commit 5fb350a

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.cargo/config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[target.wasm32-wasi]
22
rustflags = ["--cfg", "tokio_unstable"]
3-
runner = ["enarx", "run", "--wasmcfgfile", "Enarx.toml"]
3+
runner = ["wasmtime", "run", "--env", "FD_COUNT=4", "--tcplisten", "0.0.0.0:3000", "--"]
4+
# Put this back when Enarx is able to receive TCP configuation from the command line.
5+
# runner = ["enarx", "run", "--wasmcfgfile", "Enarx.toml"]

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- name: Setup Rust toolchain
2121
run: rustup show
22-
- name: Download enarx
23-
run: curl -sLO https://github.com/enarx/enarx/releases/download/v0.6.4/enarx-0.6.4-1_amd64.deb
24-
- name: Install enarx
25-
run: sudo dpkg -i enarx-0.6.4-1_amd64.deb
22+
# Put this back when Enarx is able to receive TCP configuation from the command line.
23+
#- name: Download enarx
24+
# run: curl -sLO https://github.com/enarx/enarx/releases/download/v0.6.4/enarx-0.6.4-1_amd64.deb
25+
#- name: Install enarx
26+
# run: sudo dpkg -i enarx-0.6.4-1_amd64.deb
27+
- name: Download Wasmtime
28+
run: cargo install wasmtime-cli
29+
- name: Check wasmtime version
30+
run: wasmtime --version
2631
- name: cargo test
2732
uses: actions-rs/cargo@v1
2833
with:

0 commit comments

Comments
 (0)