summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 1b51876f2618da3d52817328b2b7e6a07cf5123c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: CI

on: [push, pull_request]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    strategy:
      matrix:
        os: [windows-latest, macos-latest]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v2
      - name: Stable
        run: cargo test
      - name: Oldstable
        run: |
          rustup default 1.46.0
          cargo test
      - name: Clippy
        run: |
          rustup component add clippy
          cargo clippy --all-targets