From 70508945f7c43eaf0c12f4cdd3d0d5f2e309127b Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 18 Aug 2022 07:52:17 +0900 Subject: [PATCH] use rust-cache for wasm --- .github/workflows/ci.yaml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c36433614..628d7785b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -301,19 +301,11 @@ jobs: wasm: name: Check the WASM package and demo - needs: rust_tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@stable - - name: Cache cargo dependencies - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-wasm_opt3-${{ hashFiles('**/Cargo.lock') }} + - uses: Swatinem/rust-cache@v1 - name: install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: install geckodriver @@ -357,18 +349,11 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: target: wasm32-wasi + - uses: Swatinem/rust-cache@v1 - name: Setup Wasmer uses: wasmerio/setup-wasmer@v1 - name: Install clang run: sudo apt-get update && sudo apt-get install clang -y - - name: Cache cargo dependencies - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-wasi_opt3-${{ hashFiles('**/Cargo.lock') }} - name: build rustpython run: cargo build --release --target wasm32-wasi --features freeze-stdlib,stdlib --verbose - name: run snippets