From 9dd6e05d059361df35a16468ab2297c838b68159 Mon Sep 17 00:00:00 2001 From: Erwan Vivien Date: Mon, 9 Oct 2023 15:29:10 +0200 Subject: [PATCH] fix: update github workflows --- .github/workflows/rust.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5e27f9a..1ac2762 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,21 +19,27 @@ jobs: - name: Install wasm32-unknown-unknown target run: rustup target add wasm32-unknown-unknown - # With no feature. Target: normal & wasm + # With no feature. Target: normal & wasm & wasm-bindgen - name: Build run: cargo build --verbose - name: Build in wasm run: cargo build --verbose --target wasm32-unknown-unknown + - name: Build in wasm-bindgen + run: cargo build --verbose -F wasm-bindgen --target wasm32-unknown-unknown - # With feature `svg`. Target: normal & wasm + # With feature `svg`. Target: normal & wasm & wasm-bindgen - name: Build with `svg` run: cargo build --verbose -F svg - name: Build with `svg` in wasm run: cargo build --verbose -F svg --target wasm32-unknown-unknown + - name: Build with `svg` in wasm-bindgen + run: cargo build --verbose -F svg,wasm-bindgen --target wasm32-unknown-unknown - # With feature `image`. Target: normal only + # With feature `image`. Target: normal & wasm only - name: Build with `image` run: cargo build --verbose -F image + - name: Build with `image` in wasm + run: cargo build --verbose -F image --target wasm32-unknown-unknown # With feature `wasm-bindgen`. Target: wasm only - name: Build with `wasm-bindgen`