| 1 |
name: CI |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
env: |
| 6 |
CARGO_TERM_COLOR: always |
| 7 |
|
| 8 |
jobs: |
| 9 |
test: |
| 10 |
name: "${{ matrix.os.name }} ${{ matrix.test.name }} (${{ matrix.toolchain }})" |
| 11 |
|
| 12 |
strategy: |
| 13 |
matrix: |
| 14 |
os: |
| 15 |
- { name: Linux, distro: ubuntu-latest } |
| 16 |
- { name: Windows, distro: windows-latest } |
| 17 |
- { name: macOS, distro: macOS-latest } |
| 18 |
toolchain: [nightly, beta, stable] |
| 19 |
include: |
| 20 |
- os: { name: Linux, distro: ubuntu-latest } |
| 21 |
toolchain: 1.0.0 |
| 22 |
|
| 23 |
runs-on: ${{ matrix.os.distro }} |
| 24 |
|
| 25 |
steps: |
| 26 |
- name: Checkout Sources |
| 27 |
uses: actions/checkout@v2 |
| 28 |
|
| 29 |
- name: Install Rust |
| 30 |
uses: actions-rs/toolchain@v1 |
| 31 |
with: |
| 32 |
profile: minimal |
| 33 |
toolchain: ${{ matrix.toolchain }} |
| 34 |
override: true |
| 35 |
|
| 36 |
- name: Run Tests |
| 37 |
uses: actions-rs/cargo@v1 |
| 38 |
env: |
| 39 |
FORCE_STATIC: 1 |
| 40 |
KNOWN_CHANNEL: ${{ matrix.toolchain }} |
| 41 |
with: |
| 42 |
command: test |