diff --git a/.cargo/config b/.cargo/config index bf0daa6d..7f66523a 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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"] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b856e79..87a3c6dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: