chore: release v2.11.4 (#212) #812
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |