Release version 2.0.0 (#55) #110
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust Nightly | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
override: true | |
profile: minimal | |
- name: Build rust doc | |
run: cargo doc --all-features --no-deps | |
env: | |
RUSTDOCFLAGS: "--cfg docsrs" | |
build: | |
strategy: | |
matrix: | |
rust: [ | |
1.63.0, | |
stable, | |
nightly | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust ${{ matrix.rust }} with wasm32 | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
target: wasm32-unknown-unknown | |
profile: minimal | |
- uses: Swatinem/[email protected] | |
- name: Base build | |
run: cargo build --verbose | |
- name: Build with feature 'check' | |
run: cargo build --verbose --features check | |
- name: Build with feature 'stream' | |
run: cargo build --verbose --features stream | |
- name: Build full features | |
run: cargo build --verbose --all-features | |
- name: Build wasm with check feature | |
run: cargo build --verbose --target wasm32-unknown-unknown --no-default-features --features check | |
test: | |
strategy: | |
matrix: | |
rust: [ | |
stable, | |
nightly | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust ${{ matrix.rust }} | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
profile: minimal | |
- uses: Swatinem/[email protected] | |
- run: cargo test --verbose --all-features |