| 1 |
name: Rust |
| 2 |
|
| 3 |
on: |
| 4 |
push: {} |
| 5 |
pull_request: {} |
| 6 |
schedule: |
| 7 |
|
| 8 |
- cron: '5 1 * * *' |
| 9 |
|
| 10 |
jobs: |
| 11 |
build_test: |
| 12 |
runs-on: windows-latest |
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
rust: |
| 16 |
|
| 17 |
- { target: i586-pc-windows-msvc, toolchain: 1.51.0 } |
| 18 |
- { target: i586-pc-windows-msvc, toolchain: stable } |
| 19 |
- { target: i586-pc-windows-msvc, toolchain: beta } |
| 20 |
- { target: i586-pc-windows-msvc, toolchain: nightly } |
| 21 |
|
| 22 |
- { target: i686-pc-windows-msvc, toolchain: 1.51.0 } |
| 23 |
- { target: i686-pc-windows-msvc, toolchain: stable } |
| 24 |
- { target: i686-pc-windows-msvc, toolchain: beta } |
| 25 |
- { target: i686-pc-windows-msvc, toolchain: nightly } |
| 26 |
|
| 27 |
- { target: x86_64-pc-windows-msvc, toolchain: 1.51.0 } |
| 28 |
- { target: x86_64-pc-windows-msvc, toolchain: stable } |
| 29 |
- { target: x86_64-pc-windows-msvc, toolchain: beta } |
| 30 |
- { target: x86_64-pc-windows-msvc, toolchain: nightly } |
| 31 |
steps: |
| 32 |
- uses: actions/checkout@v1 |
| 33 |
- uses: actions-rs/toolchain@v1 |
| 34 |
with: |
| 35 |
toolchain: ${{ matrix.rust.toolchain }} |
| 36 |
target: ${{ matrix.rust.target }} |
| 37 |
profile: minimal |
| 38 |
default: true |
| 39 |
- name: suppress target-cpu=native on i586 |
| 40 |
if: matrix.rust.target == 'i586-pc-windows-msvc' |
| 41 |
run: rm .cargo/config.toml |
| 42 |
- name: Run tests with default features |
| 43 |
run: cargo test --target ${{ matrix.rust.target }} |
| 44 |
- name: Run tests with all features |
| 45 |
run: cargo test --target ${{ matrix.rust.target }} --all-features |