Skip to content

feat: added rpc-client crate #59

feat: added rpc-client crate

feat: added rpc-client crate #59

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings" # Treats warnings as errors
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Add WASM target
run: rustup target add wasm32-unknown-unknown
# - name: Setup Emscripten
# uses: mymindstorm/setup-emsdk@v14
# with:
# version: latest
# actions-cache-folder: "emsdk-cache"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt --all -- --check
# - name: Lint
# run: cargo clippy -- -D warnings
- name: Build
run: make
- name: Run tests
run: make test