@@ -72,14 +72,10 @@ jobs:
7272 - name : target
7373 run : " rustc -vV | sed -n 's|host: ||p'"
7474 if : matrix.os != 'windows-2022'
75- - name : Install cargo-llvm-cov
76- uses : taiki-e/install-action@56ab7930c591507f833cbaed864d201386d518a8
75+ - name : Install cargo-llvm-cov & cargo-nextest
76+ uses : taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
7777 with :
78- tool : cargo-llvm-cov
79- - name : Install cargo-nextest
80- uses : taiki-e/install-action@56ab7930c591507f833cbaed864d201386d518a8
81- with :
82- tool : cargo-nextest
78+ tool : cargo-llvm-cov,cargo-nextest
8379 - name : cargo build
8480 run : cargo build --target ${{matrix.target}} ${{ matrix.features }}
8581 - name : cargo build (no_std)
@@ -90,15 +86,16 @@ jobs:
9086 run : cargo rustc --target ${{matrix.target}} -p libbz2-rs-sys --lib --no-default-features --features rust-allocator --crate-type rlib
9187 env :
9288 RUSTFLAGS : -Aunused_variables -Aunused_assignments
93- - name : cargo nextest # reports segfaults in a helpful way
94- run : cargo nextest run --target ${{matrix.target}} ${{ matrix.features }} --no-fail-fast --workspace
89+ - name : cargo llvm-cov nextest
90+ if : matrix.os != 'windows-2022'
91+ run : cargo llvm-cov nextest --target ${{matrix.target}} ${{ matrix.features }} --lcov --output-path lcov.info --ignore-filename-regex "test-libbz2" --workspace
9592 env :
9693 RUST_BACKTRACE : 1
97- - name : cargo test with llvm-cov
98- run : cargo llvm-cov --target ${{matrix.target}} ${{ matrix.features }} --lcov --output-path lcov.info --ignore-filename-regex "test-libbz2" --workspace
94+ - name : cargo nextest
95+ if : matrix.os == 'windows-2022'
96+ run : cargo nextest run --target ${{matrix.target}} ${{ matrix.features }} --no-fail-fast
9997 env :
10098 RUST_BACKTRACE : 1
101- if : matrix.os != 'windows-2022'
10299 - name : Upload coverage to Codecov
103100 uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
104101 if : matrix.os != 'windows-2022'
0 commit comments