Skip to content

Hack in Windows support #17

Hack in Windows support

Hack in Windows support #17

Workflow file for this run

name: CI
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
env:
minrust: 1.40.0 # Also update in Cargo.toml
jobs:
Lints:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: { os: [ ubuntu-latest, windows-latest ] }
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo fmt --check
- run: cargo clippy -- -D warnings
if: always()
Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: { os: [ ubuntu-latest, windows-latest ] }
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --features serde
- run: cargo test
MSRV:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: { os: [ ubuntu-latest, windows-latest ] }
steps:
- uses: actions/checkout@v3
- name: Install ${{ env.minrust }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.minrust }}
- run: cargo test