Skip to content

Commit

Permalink
install wasm-bindgen-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Mar 18, 2022
1 parent fffcd1d commit 0f940eb
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/main-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,37 @@ jobs:
CARGO_BUILD_TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@v2

- uses: Swatinem/rust-cache@v1

# we need this target to install wasm-bindgen-cli
- uses: actions-rs/toolchain@v1
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
profile: minimal

- name: Run doctest
uses: actions-rs/cargo@v1
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
with:
command: test
args: --doc --workspace --exclude yew --exclude website-test

- name: Install wasm-bindgen-cli
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}
uses: actions-rs/[email protected]
with:
crate: wasm-bindgen-cli
version: 0.2.78 # update this when changing wasm-bindgen version in yew

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
profile: minimal

- name: Run doctest
uses: actions-rs/cargo@v1
if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
with:
command: test
args: --doc --workspace --exclude yew --exclude website-test

- name: Run website code snippet tests
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 0f940eb

Please sign in to comment.