name: CI
on: [push, pull_request]
jobs:
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable, '1.63']
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v6
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Downgrading windows-sys
if: matrix.toolchain == 1.63
run: cargo update -p windows-sys --precise 0.60.2
- name: Run tests
run: cargo test -- --color always