.github: wasm build fixups
@@ -12,17 +12,34 @@ jobs:
name: Build (wasm32-unknown-unknown)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - name: Checkout sources
+ uses: actions/checkout@v1
+
+ - name: Cache cargo registry
+ uses: actions/cache@v1
+ with:
+ path: ~/.cargo/registry
+ key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
+
+ - name: Cache cargo index
+ uses: actions/cache@v1
+ with:
+ path: ~/.cargo/git
+ key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
+
+ - name: Install stable toolchain
+ uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- - uses: actions-rs/cargo@v1
+
+ - name: Run cargo build
+ uses: actions-rs/cargo@v1
with:
use-cross: false
command: build
- args: --all --exclude canonical-path --exclude gaunt --target wasm32-unknown-unknown
+ args: --all --exclude canonical-path --target wasm32-unknown-unknown
check:
name: Check
