Install trunk in 1s for CI/CD (#1808)

Use trunk-action and wasm-bindgen-action
This commit is contained in:
Jet Li 2021-05-03 23:42:39 +08:00 committed by GitHub
parent 505826e109
commit 21eca25fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -29,9 +29,15 @@ jobs:
restore-keys: |
cargo-${{ runner.os }}-
- name: Install trunk
run: |
cargo install trunk wasm-bindgen-cli
- uses: jetli/trunk-action@v0.1.0
with:
# Optional version of trunk to install(eg. 'v0.8.1', 'latest')
version: 'latest'
- uses: jetli/wasm-bindgen-action@v0.1.0
with:
# Optional version of wasm-bindgen to install(eg. '0.2.68', 'latest')
version: 'latest'
- name: Build examples
run: |