Factor SizeLimited constructor #25
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: Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
rust-version: [1.22.0, 1.31.0, stable, nightly] | |
include: | |
- os: macos-latest | |
rust-version: 1.75.0 | |
- os: windows-latest | |
rust-version: 1.31.0 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Rust ${{ matrix.rust-version }} | |
run: rustup toolchain install ${{ matrix.rust-version }} --profile minimal | |
- name: Import fixed Cargo.lock file | |
run: if [ -e .ci-Cargo.lock-${{ matrix.rust-version }} ]; then cp .ci-Cargo.lock-${{ matrix.rust-version }} Cargo.lock; fi | |
shell: bash | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Build doc | |
run: cargo doc |