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
68
69
70
# name: CI
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# permissions:
# contents: read
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
# jobs:
# checks:
# name: CI checks (format, clippy, build, test, examples, docs, unsafe)
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [windows-latest]
# steps:
# - uses: actions/checkout@v4
# - name: Cache cargo
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
# restore-keys: ${{ runner.os }}-cargo-
# - name: Install Rust toolchain + components
# uses: actions-rs/toolchain@v1
# with:
# # toolchain: stable
# toolchain: nightly
# components: rustfmt, clippy
# profile: minimal
# override: true
# - name: Ensure rustfmt is up to date
# run: cargo fmt --version
# - name: Check formatting
# run: cargo fmt --all -- --check
# - name: Run clippy
# run: cargo clippy --all-targets --all-features -- -D warnings
# - name: Build (all features)
# run: cargo build --all-features --verbose
# - name: Run tests (all features)
# run: cargo test --all-features --verbose
# # - name: Run examples (default features)
# # run: |
# # # These examples are quick demos and are run with default features to verify runtime behaviour.
# # cargo run --example information_human --quiet
# # cargo run --example information_rate_human --quiet
# # cargo run --example time_human --quiet
# # cargo run --example combined_human --quiet
# - name: Build docs
# run: cargo doc --no-deps --all-features