-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (64 loc) · 1.69 KB
/
test.yaml
File metadata and controls
67 lines (64 loc) · 1.69 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 12 * * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
rust:
- stable
- nightly
features:
- ""
- "-F debug"
- "-F number"
- "-F pointer"
- "-F debug -F number"
- "-F number -F pointer"
- "-F iter"
- "-F iter -F debug"
- "-F iter -F number"
- "-F iter -F pointer"
- "-F iter -F debug -F number"
- "-F iter -F number -F pointer"
- --all-features
include:
- rust: nightly
cargo_flags: -Z minimal-versions
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/
target
key: ${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.rust }}-
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Build
run:
cargo build ${{ matrix.features }} ${{ matrix.cargo_flags }}
- name: Test
run:
cargo test ${{ matrix.features }} --all-targets --no-fail-fast --workspace
- name: Doc Test
if: "matrix.features == '--all-features'"
run:
cargo test ${{ matrix.features }} --doc --no-fail-fast --workspace
- name: Build Docs
run:
cargo doc ${{ matrix.features }} --workspace --no-deps