Skip to content

Commit 43478fa

Browse files
committed
run cdylib tests on CI
1 parent 1905d50 commit 43478fa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,21 @@ jobs:
8787
run: cargo nextest run --target ${{matrix.target}} ${{ matrix.features }} --no-fail-fast
8888
env:
8989
RUST_BACKTRACE: 1
90+
- name: cargo nextest cdylib
91+
if: matrix.os != 'windows-2022'
92+
working-directory: libz-rs-sys-cdylib
93+
run: cargo llvm-cov nextest --target ${{matrix.target}} ${{ matrix.features }} --features="gz" --lcov --output-path cdylib.lcov.info --ignore-filename-regex "test-libz|dynamic-libz"
94+
- name: cargo nextest cdylib
95+
if: matrix.os == 'windows-2022'
96+
working-directory: libz-rs-sys-cdylib
97+
run: cargo nextest run --target ${{matrix.target}} ${{ matrix.features }} --features="gz" --no-fail-fast
9098
- name: Upload coverage to Codecov
9199
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
92100
if: matrix.os != 'windows-2022' && matrix.rust == 'stable'
93101
with:
94-
files: ./lcov.info
102+
files: |
103+
./lcov.info
104+
./cdylib.lcov.info
95105
fail_ci_if_error: false
96106
flags: test-${{matrix.target}}
97107
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)