Skip to content

Commit

Permalink
fix(ci): ci workflow - fix tests with defmt-03 to not run in windows
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Aug 26, 2024
1 parent 6cf358c commit 9d21f23
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,32 @@ jobs:
- name: Test --no-default-features
run: cargo test --no-default-features

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

- name: Test feature defmt-03
# this includes default features, `std` and `all-sentences`
if: ${{ matrix.os != 'windows-latest' }}
run: cargo test -F defmt-03

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

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

- name: Test (Release) feature defmt-03
if: ${{ matrix.os != 'windows-latest' }}
# this includes default features, `std` and `all-sentences`
run: cargo test --release -F serde -F defmt-03
run: cargo test --release -F defmt-03

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

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -96,7 +106,7 @@ jobs:
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Docs.rs uses nightly, which allows for easier syntax for linking to functions.
- uses: dtolnay/rust-toolchain@nightly
with:
Expand Down

0 comments on commit 9d21f23

Please sign in to comment.