Skip to content

Prepare release (#202) #787

Prepare release (#202)

Prepare release (#202) #787

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: fmt
run: |
cargo fmt --version
cargo fmt --all -- --check
- name: clippy
run: |
cargo clippy --version
cargo clippy --all-targets -- -D warnings
- name: check-all-features
run: |
cargo check --all --all-features
- name: check-features
run: |
cargo check --no-default-features --features bit-vec
cargo check --no-default-features --features docs
cargo check --no-default-features --features serde
cargo check --no-default-features --features serde,decode
cargo check --no-default-features --features schema
- name: build
run: |
cargo --version --verbose
cargo build --all
cargo build --all --no-default-features
- name: test
run: |
cargo test --all --all-features
# We cannot do usual rust tests in `no_std`. Instead we perform tests in the main function.
# If any assert fails, we get an `Aborted (core dumped)` non-zero exit code.
# This should make the CI fail.
- name: test no-std
run: |
cd ./test_suite/derive_tests_no_std
cargo run --no-default-features