Skip to content

Bump Swatinem/rust-cache from 2.2.1 to 2.7.0 (#51) #101

Bump Swatinem/rust-cache from 2.2.1 to 2.7.0 (#51)

Bump Swatinem/rust-cache from 2.2.1 to 2.7.0 (#51) #101

Workflow file for this run

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: Build with no default features
run: cargo build --verbose --no-default-features
- name: Build with feature 'check'
run: cargo build --verbose --no-default-features --features check
- name: Build with feature 'stream'
run: cargo build --verbose --no-default-features --features stream
- name: Build full features
run: cargo build --verbose
- 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