Skip to content

feat, prelim rpc

feat, prelim rpc #64

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: make fmt
# - name: Lint
# run: cargo clippy -- -D warnings
- name: Build
run: make
- name: Run tests
run: make test