• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on: [push, pull_request]
2
3name: CI
4
5jobs:
6  check:
7    name: Check
8    runs-on: ubuntu-latest
9    strategy:
10      matrix:
11        rust:
12          - stable
13          - 1.46.0
14        features:
15          - --features=std
16          - --no-default-features --features=alloc,ahash
17    steps:
18      - uses: actions/checkout@v2
19      - uses: actions-rs/toolchain@v1
20        with:
21          profile: minimal
22          toolchain: ${{ matrix.rust }}
23          override: true
24      - uses: actions-rs/cargo@v1
25        with:
26          command: check
27          args: --all-targets ${{ matrix.features }}
28
29  test:
30    name: Test Suite
31    runs-on: ubuntu-latest
32    strategy:
33      matrix:
34        rust:
35          - stable
36          - 1.46.0
37        features:
38          - --features=std
39          - --no-default-features --features=alloc,ahash
40    steps:
41      - uses: actions/checkout@v2
42      - uses: actions-rs/toolchain@v1
43        with:
44          profile: minimal
45          toolchain: ${{ matrix.rust }}
46          override: true
47      - uses: actions-rs/cargo@v1
48        with:
49          command: test
50          args: ${{ matrix.features }}
51
52  clippy:
53    name: Clippy
54    runs-on: ubuntu-latest
55    strategy:
56      matrix:
57        rust:
58          - stable
59          - 1.46.0
60    steps:
61      - uses: actions/checkout@v2
62      - uses: actions-rs/toolchain@v1
63        with:
64          profile: minimal
65          toolchain: ${{ matrix.rust }}
66          override: true
67      - run: rustup component add clippy
68      - uses: actions-rs/cargo@v1
69        with:
70          command: clippy
71          args: -- -D warnings
72