From 5b13cf4e9283584bc15cfbf8bddde3113ba319bb Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Thu, 28 Apr 2022 10:25:03 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jonas Platte --- .github/workflows/wasm.yml | 4 +++- xtask/src/ci.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 168ff69de..6c8954424 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -49,10 +49,12 @@ jobs: components: clippy profile: minimal override: true + - name: Install WasmPack uses: jetli/wasm-pack-action@v0.3.0 with: version: 'latest' + - name: Load cache uses: Swatinem/rust-cache@v1 @@ -66,4 +68,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: run - args: -p xtask -- ci wasm-pack ${{ matrix.cmd || matrix.name }} \ No newline at end of file + args: -p xtask -- ci wasm-pack ${{ matrix.cmd || matrix.name }} diff --git a/xtask/src/ci.rs b/xtask/src/ci.rs index 7c617de31..7a5c4b984 100644 --- a/xtask/src/ci.rs +++ b/xtask/src/ci.rs @@ -324,6 +324,7 @@ fn run_wasm_pack_tests(cmd: Option) -> Result<()> { Ok(()) } + fn workspace_root() -> Result { #[derive(Deserialize)] struct Metadata {