Skip to content

Commit

Permalink
Merge branch 'main' into ANG13T/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ANG13T authored Feb 24, 2024
2 parents 73009cc + 62763a5 commit 9f3b646
Show file tree
Hide file tree
Showing 38 changed files with 429 additions and 284 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ concurrency:

env:
RUST_BACKTRACE: 1
RUSTUP_MAX_RETRIES: 10
CARGO_NET_RETRY: 10

jobs:
lints:
name: Rustfmt & Clippy lints

runs-on: ubuntu-latest
# strategy:
# fail-fast: false
env:
RUSTUP_MAX_RETRIES: 10
CARGO_NET_RETRY: 10
steps:
- uses: actions/checkout@v3

Expand All @@ -53,9 +51,6 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: ["1.65", stable, beta]
env:
RUSTUP_MAX_RETRIES: 10
CARGO_NET_RETRY: 10
steps:
- uses: actions/checkout@v3

Expand All @@ -70,15 +65,29 @@ jobs:

- name: Test --no-default-features
run: cargo test --no-default-features

- name: Test --all-features
run: cargo test --all-features

- name: Test all features excluding `defmt-03`
# this includes default features, `std` and `all-sentences`
run: cargo test -F serde

- name: Test (Release)
run: cargo test --release --no-default-features

- name: Test (Release) --all-features
run: cargo test --release --all-features
- name: Test (Release) all features excluding `defmt-03`
# this includes default features, `std` and `all-sentences`
run: cargo test --release -F serde

bench:
name: Benches
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run Benches
run: cargo bench -p benches-harness

# Detect cases where documentation links don't resolve and such.
doc:
Expand Down Expand Up @@ -109,8 +118,8 @@ jobs:
uses: actions/checkout@v3

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
# this includes default features, `std` and `all-sentences`
run: cargo +nightly tarpaulin --features serde --verbose --workspace --timeout 120 --out xml

- name: Upload to codecov.io
uses: codecov/codecov-action@v3
Expand Down
Loading

0 comments on commit 9f3b646

Please sign in to comment.