Skip to content

Commit

Permalink
Update to -S cli instead of -S common for wasmtime commands (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 authored Jul 4, 2024
1 parent bc90478 commit 9a32b9d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: "v19.0.2"
version: "v22.0.0"
- name: Run all tests
run: cargo test --all

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ fn get_runner(serve: bool) -> Result<PathAndArgs> {
(
PathAndArgs::new("wasmtime")
.args(if serve {
vec!["serve", "-S", "common", "-S", "http"]
vec!["serve", "-S", "cli", "-S", "http"]
} else {
vec!["-S", "preview2", "-S", "common"]
vec!["-S", "preview2", "-S", "cli"]
})
.to_owned(),
true,
Expand Down
2 changes: 1 addition & 1 deletion tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bindings::export!(Component with_types_in bindings);
.cargo_component("run")
.env(
"CARGO_TARGET_WASM32_WASIP1_RUNNER",
"wasmtime --env APP_NAME=CargoComponent -C cache=no -W component-model -S preview2 -S common",
"wasmtime --env APP_NAME=CargoComponent -C cache=no -W component-model -S preview2 -S cli",
)
.assert()
.stdout(contains("[guest] running component 'my:reactor'"))
Expand Down
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runner = [
"-S",
"preview2",
"-S",
"common",
"cli",
]"#,
)?;

Expand Down

0 comments on commit 9a32b9d

Please sign in to comment.