From 97fd8ff6c46f742ce809398aa05161567b90a16b Mon Sep 17 00:00:00 2001 From: Joseph Cruz Date: Wed, 13 Mar 2024 22:33:54 -0400 Subject: [PATCH] fix(ci): leptos examples fail with bindgen schema error (#2428) --- .github/workflows/run-cargo-make-task.yml | 9 +++++++++ examples/counter_isomorphic/Cargo.toml | 2 +- examples/counter_without_macros/Cargo.toml | 2 +- examples/counters_stable/Cargo.toml | 2 +- examples/suspense_tests/Cargo.toml | 2 +- leptos/tests/ssr.rs | 2 -- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-cargo-make-task.yml b/.github/workflows/run-cargo-make-task.yml index 8182745063..2b8e68fc6a 100644 --- a/.github/workflows/run-cargo-make-task.yml +++ b/.github/workflows/run-cargo-make-task.yml @@ -44,6 +44,15 @@ jobs: - uses: Swatinem/rust-cache@v2 + - name: Install binstall + uses: cargo-bins/cargo-binstall@main + + - name: Install wasm-bindgen + run: cargo binstall wasm-bindgen-cli --no-confirm + + - name: Install cargo-leptos + run: cargo binstall cargo-leptos --no-confirm + - name: Install Trunk uses: jetli/trunk-action@v0.4.0 with: diff --git a/examples/counter_isomorphic/Cargo.toml b/examples/counter_isomorphic/Cargo.toml index 8a13a92461..370987d779 100644 --- a/examples/counter_isomorphic/Cargo.toml +++ b/examples/counter_isomorphic/Cargo.toml @@ -25,7 +25,7 @@ leptos_router = { path = "../../router" } log = "0.4" once_cell = "1.18" gloo-net = { git = "https://github.com/rustwasm/gloo" } -wasm-bindgen = "0.2.87" +wasm-bindgen = "0.2" serde = { version = "1", features = ["derive"] } simple_logger = "4.3" tracing = { version = "0.1", optional = true } diff --git a/examples/counter_without_macros/Cargo.toml b/examples/counter_without_macros/Cargo.toml index ecab0c2186..e3367af4ac 100644 --- a/examples/counter_without_macros/Cargo.toml +++ b/examples/counter_without_macros/Cargo.toml @@ -15,7 +15,7 @@ log = "0.4" console_error_panic_hook = "0.1.7" [dev-dependencies] -wasm-bindgen = "0.2.84" +wasm-bindgen = "0.2" wasm-bindgen-test = "0.3.34" pretty_assertions = "1.3.0" rstest = "0.17.0" diff --git a/examples/counters_stable/Cargo.toml b/examples/counters_stable/Cargo.toml index 143990ea8a..27d518e16c 100644 --- a/examples/counters_stable/Cargo.toml +++ b/examples/counters_stable/Cargo.toml @@ -12,7 +12,7 @@ console_log = "1" console_error_panic_hook = "0.1.7" [dev-dependencies] -wasm-bindgen = "0.2.87" +wasm-bindgen = "0.2" wasm-bindgen-test = "0.3.37" pretty_assertions = "1.4.0" diff --git a/examples/suspense_tests/Cargo.toml b/examples/suspense_tests/Cargo.toml index 65a8031c02..8df88e77d5 100644 --- a/examples/suspense_tests/Cargo.toml +++ b/examples/suspense_tests/Cargo.toml @@ -16,7 +16,7 @@ leptos_actix = { path = "../../integrations/actix", optional = true } leptos_router = { path = "../../router" } log = "0.4" simple_logger = "4" -wasm-bindgen = "0.2.87" +wasm-bindgen = "0.2" serde = "1.0.159" tokio = { version = "1.29", features = ["time", "rt"], optional = true } diff --git a/leptos/tests/ssr.rs b/leptos/tests/ssr.rs index 78620adfdd..32a116a9b7 100644 --- a/leptos/tests/ssr.rs +++ b/leptos/tests/ssr.rs @@ -206,5 +206,3 @@ fn ssr_option() { runtime.dispose(); } - -// TODO: remove simulated change