| 1 |
name: CI |
| 2 |
on: [push, pull_request] |
| 3 |
|
| 4 |
jobs: |
| 5 |
test-nightly: |
| 6 |
runs-on: ${{ matrix.os }} |
| 7 |
strategy: |
| 8 |
fail-fast: false |
| 9 |
matrix: |
| 10 |
os: [ubuntu-latest, windows-latest, macos-latest] |
| 11 |
rust: [nightly] |
| 12 |
steps: |
| 13 |
- uses: actions/checkout@v2 |
| 14 |
- name: Install Rust toolchain |
| 15 |
uses: actions-rs/toolchain@v1 |
| 16 |
with: |
| 17 |
toolchain: ${{ matrix.rust }} |
| 18 |
override: true |
| 19 |
- name: Run tests (no_std) |
| 20 |
uses: actions-rs/cargo@v1 |
| 21 |
with: |
| 22 |
command: test |
| 23 |
args: --tests --no-default-features --features nightly |
| 24 |
- name: Run tests (std) |
| 25 |
uses: actions-rs/cargo@v1 |
| 26 |
with: |
| 27 |
command: test |
| 28 |
args: --tests --no-default-features --features std,nightly |
| 29 |
- name: Run tests (alloc) |
| 30 |
uses: actions-rs/cargo@v1 |
| 31 |
with: |
| 32 |
command: test |
| 33 |
args: --tests --no-default-features --features alloc,nightly |
| 34 |
test-stable: |
| 35 |
runs-on: ${{ matrix.os }} |
| 36 |
strategy: |
| 37 |
fail-fast: false |
| 38 |
matrix: |
| 39 |
os: [ubuntu-latest, windows-latest, macos-latest] |
| 40 |
rust: [stable] |
| 41 |
steps: |
| 42 |
- uses: actions/checkout@v2 |
| 43 |
- name: Install Rust toolchain |
| 44 |
uses: actions-rs/toolchain@v1 |
| 45 |
with: |
| 46 |
toolchain: ${{ matrix.rust }} |
| 47 |
override: true |
| 48 |
- name: Run tests (no_std) |
| 49 |
uses: actions-rs/cargo@v1 |
| 50 |
with: |
| 51 |
command: test |
| 52 |
args: --no-default-features |
| 53 |
- name: Run tests (std) |
| 54 |
uses: actions-rs/cargo@v1 |
| 55 |
with: |
| 56 |
command: test |
| 57 |
args: --no-default-features --features std |
| 58 |
- name: Run tests (alloc) |
| 59 |
uses: actions-rs/cargo@v1 |
| 60 |
with: |
| 61 |
command: test |
| 62 |
args: --no-default-features --features alloc |
| 63 |
test-msrv: |
| 64 |
runs-on: ${{ matrix.os }} |
| 65 |
strategy: |
| 66 |
fail-fast: false |
| 67 |
matrix: |
| 68 |
os: [ubuntu-latest, windows-latest, macos-latest] |
| 69 |
rust: [1.47] |
| 70 |
steps: |
| 71 |
- uses: actions/checkout@v2 |
| 72 |
- name: Install Rust toolchain |
| 73 |
uses: actions-rs/toolchain@v1 |
| 74 |
with: |
| 75 |
toolchain: ${{ matrix.rust }} |
| 76 |
override: true |
| 77 |
- name: Run tests (no_std) |
| 78 |
uses: actions-rs/cargo@v1 |
| 79 |
with: |
| 80 |
command: test |
| 81 |
args: --no-default-features |
| 82 |
- name: Run tests (std) |
| 83 |
uses: actions-rs/cargo@v1 |
| 84 |
with: |
| 85 |
command: test |
| 86 |
args: --no-default-features --features std |
| 87 |
- name: Run tests (alloc) |
| 88 |
uses: actions-rs/cargo@v1 |
| 89 |
with: |
| 90 |
command: test |
| 91 |
args: --no-default-features --features alloc |