49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: Wasm Client
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'explorer/**'
|
|
|
|
jobs:
|
|
wasm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
target: wasm32-unknown-unknown
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
# token credentials (non-coconut) don't work for wasm right now
|
|
# - uses: actions-rs/cargo@v1
|
|
# with:
|
|
# command: build
|
|
# args: --manifest-path clients/webassembly/Cargo.toml --target wasm32-unknown-unknown
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --manifest-path clients/webassembly/Cargo.toml --target wasm32-unknown-unknown --features=coconut
|
|
|
|
# for some reason this does not seem to work correctly, leave it for later, building is good enough for now
|
|
# - uses: actions-rs/cargo@v1
|
|
# with:
|
|
# command: test
|
|
# args: --manifest-path clients/webassembly/Cargo.toml --target wasm32-unknown-unknown
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --manifest-path clients/webassembly/Cargo.toml -- --check
|
|
|
|
# for some reason this does not seem to work correctly, leave it for later, building is good enough for now
|
|
# - uses: actions-rs/cargo@v1
|
|
# with:
|
|
# command: clippy
|
|
# args: --manifest-path clients/webassembly/Cargo.toml --target wasm32-unknown-unknown -- -D warnings
|