Skip to content

Merge branch 'ci' into 'master' #26

Merge branch 'ci' into 'master'

Merge branch 'ci' into 'master' #26

Workflow file for this run

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