name: Rust
on:
push: {}
pull_request: {}
schedule:
- cron: '5 1 * * *'
jobs:
build_test:
runs-on: windows-latest
strategy:
matrix:
rust:
- { target: i586-pc-windows-msvc, toolchain: 1.51.0 }
- { target: i586-pc-windows-msvc, toolchain: stable }
- { target: i586-pc-windows-msvc, toolchain: beta }
- { target: i586-pc-windows-msvc, toolchain: nightly }
- { target: i686-pc-windows-msvc, toolchain: 1.51.0 }
- { target: i686-pc-windows-msvc, toolchain: stable }
- { target: i686-pc-windows-msvc, toolchain: beta }
- { target: i686-pc-windows-msvc, toolchain: nightly }
- { target: x86_64-pc-windows-msvc, toolchain: 1.51.0 }
- { target: x86_64-pc-windows-msvc, toolchain: stable }
- { target: x86_64-pc-windows-msvc, toolchain: beta }
- { target: x86_64-pc-windows-msvc, toolchain: nightly }
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
target: ${{ matrix.rust.target }}
profile: minimal
default: true
- name: suppress target-cpu=native on i586
if: matrix.rust.target == 'i586-pc-windows-msvc'
run: rm .cargo/config.toml
- name: Run tests with default features
run: cargo test --target ${{ matrix.rust.target }}
- name: Run tests with all features
run: cargo test --target ${{ matrix.rust.target }} --all-features