Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Update README.md (#4) #7

Update README.md (#4)

Update README.md (#4) #7

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Checks & Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
submodules: recursive
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
targets: wasm32-unknown-unknown
- name: Cargo Check
run: cargo check --all --benches
- name: Cargo Check `no-std`
run: cargo +nightly build --no-default-features --target=wasm32-unknown-unknown
- name: Run tests
run: cargo +nightly test --all-features --verbose
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check