Merge pull request #34 from Dr-TSNG/master #76
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 | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use ${{ matrix.rust }} | |
run: rustup default ${{ matrix.rust }} | |
- name: Build | |
run: cargo build --verbose | |
- name: Build without default features | |
run: cargo build --no-default-features --verbose | |
- name: Build with all features | |
run: cargo build --all-features --verbose | |
- name: Run tests | |
run: cargo test --verbose |