-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 996 Bytes
/
testing.yml
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
34
35
36
37
38
39
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@v3
- run: rm rust-toolchain.toml
# Cache files like by target directory
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-rustc-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# Prepare toolchain related stuff
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- uses: KyleMayes/install-llvm-action@v1
with:
version: "15.0"
- run: cargo build --all-features
- run: cargo test --all-features --no-fail-fast