From 278f3a00b82a977cbdaa0137a0c6c0ffa2907d98 Mon Sep 17 00:00:00 2001 From: vrbouza <15350389+vrbouza@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:34:44 +0000 Subject: [PATCH] Version bump, cicd fix --- .github/workflows/codecov.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e77f716..4838023 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -26,24 +26,33 @@ jobs: override: true - name: Build run: cargo build --verbose + # - name: Run tests + # run: cargo test --verbose --no-fail-fast + # env: + # CARGO_INCREMENTAL: '0' + # RUSTFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage' + # RUSTDOCFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage' - name: Run tests - run: cargo test --verbose --no-fail-fast + run: cargo install cargo-llvm-cov; cargo llvm-cov --lcov --output-path=./lcov.info env: CARGO_INCREMENTAL: '0' - RUSTFLAGS: '-Cinstrument-coverage' - - name: rust-grcov - # You may pin to the exact commit or the version. - # uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248 - uses: actions-rs/grcov@v0.1.5 - with: - config: .github/config/grcov.yml + RUSTFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage' + RUSTDOCFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage' + # - name: rust-grcov + # # You may pin to the exact commit or the version. + # # uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248 + # uses: actions-rs/grcov@v0.1.5 + # with: + # config: .github/config/grcov.yml - name: Codecov # You may pin to the exact commit or the version. # uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 - uses: codecov/codecov-action@v3.1.0 + # uses: codecov/codecov-action@v3.1.0 + uses: codecov/codecov-action@v4 with: # Repository upload token - get it from codecov.io. Required only for private repositories token: ${{ secrets.CODECOV_TOKEN }} + file: ./lcov.info # Specify whether the Codecov output should be verbose verbose: true fail_ci_if_error: true