Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM in CI #144

Merged
merged 4 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: Feature ${{matrix.feature}}
uses: actions-rs/cargo@v1
with:
Expand All @@ -45,6 +46,7 @@ jobs:
with:
toolchain: ${{matrix.toolchain}}
override: true
- uses: Swatinem/rust-cache@v2
- name: All features
if: matrix.toolchain != '1.41.1'
uses: actions-rs/cargo@v1
Expand All @@ -68,6 +70,7 @@ jobs:
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: Create dependency
run: |
cargo new dep_test
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
toolchain: 1.64.0
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Formatting
with:
Expand All @@ -35,11 +36,31 @@ jobs:
toolchain: 1.64.0
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Clippy
with:
command: clippy
args: --workspace --all-features
wasm-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc 1.52.0
uses: actions-rs/toolchain@v1
with:
toolchain: 1.52.0
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: jetli/wasm-pack-action@v0.3.0
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
name: Clippy
with:
command: clippy
args: --workspace --all-features --target wasm32-unknown-unknown
doc:
runs-on: ubuntu-latest
steps:
Expand All @@ -50,6 +71,7 @@ jobs:
toolchain: 1.64.0
override: true
components: rust-docs
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Doc
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,24 @@ jobs:
with:
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v2
- name: Build & test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features --no-fail-fast
wasm-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v2
- uses: jetli/wasm-pack-action@v0.3.0
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Test in headless Chrome
run: wasm-pack test --headless --chrome
151 changes: 151 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.