aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/testing.yml
blob: 49f3799a121e56e64bbdbaabd4d81e551204cad4 (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
28
29
30
31
32
33
name: Testing
on: [push, pull_request]

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu
          - macos
        rust:
          - stable
          - nightly-2023-06-19
    name: Test Rust ${{ matrix.rust }} on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
      - run: rm rust-toolchain.toml
      - uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: ${{ matrix.rust }}
      - uses: KyleMayes/install-llvm-action@v1
        with:
          version: "15.0"
      - run: cargo test --all-features --no-fail-fast