From 8bf3f3ad59d888e5e79a3415b43fb3a78e80e548 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Thu, 5 Aug 2021 16:00:06 -0700 Subject: [PATCH] Install emsdk for clippy run under wasm32-unknown-unknown target --- .github/workflows/ci.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9abc1c81..abd5660e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,6 +46,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Set toolchain versions + run: | + echo "::set-output name=rust::$(cat rust-toolchain)" + echo "::set-output name=emscripten::$(cat emscripten-toolchain)" + id: toolchain_versions + - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -61,7 +67,21 @@ jobs: ruby-version: ".ruby-version" bundler-cache: true - - uses: Swatinem/rust-cache@v1 + - name: Cache emsdk + uses: actions/cache@v2 + id: cache + with: + path: "emsdk-cache" + key: emscripten-emsdk-${{ runner.os }}-emsdk-${{ steps.toolchain_versions.outputs.emscripten }} + + - name: Install Emscripten toolchain + uses: mymindstorm/setup-emsdk@v10 + with: + version: ${{ steps.toolchain_versions.outputs.emscripten }} + actions-cache-folder: "emsdk-cache" + + - name: Verify emcc version + run: emcc -v - name: Check formatting run: cargo fmt -- --check --color=auto