Skip to content

Commit

Permalink
Improve druid-wasm-examples testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom committed Apr 17, 2020
1 parent 4516072 commit 4509813
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ jobs:
steps:
- uses: actions/checkout@v2

# libgtk-dev seems to be needed by e.g. druid-derive
- name: install libgtk-dev
run: |
sudo apt update
Expand Down Expand Up @@ -216,20 +217,12 @@ jobs:
command: test
args: --manifest-path=docs/book_examples/Cargo.toml --no-run --target wasm32-unknown-unknown

# Clippy, test, and build the special druid-wasm-examples package.
# This package is not meant to compile to wasm32.
# Instead it is a helper for generating examples for wasm32.
# Clippy and build the special druid-wasm-examples package.
- name: cargo clippy druid-wasm-examples
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path=druid/examples/wasm/Cargo.toml --all-targets -- -D warnings

- name: cargo test druid-wasm-examples
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=druid/examples/wasm/Cargo.toml
args: --manifest-path=druid/examples/wasm/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

- name: wasm-pack build examples
run: wasm-pack build --target web druid/examples/wasm
Expand Down

0 comments on commit 4509813

Please sign in to comment.