name: CI
on: [push, pull_request]
jobs:
test:
name: cargo test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux, linux-nightly, macos, win32, win64, mingw]
include:
- build: linux
os: ubuntu-latest
rust: stable
- build: linux-nightly
os: ubuntu-latest
rust: nightly
- build: macos
os: macos-latest
rust: stable
- build: win32
os: windows-latest
rust: stable-i686
- build: win64
os: windows-latest
rust: stable-x86_64
- build: mingw
os: windows-latest
rust: stable-x86_64-gnu
steps:
- uses: actions/checkout@master
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: cargo test