From e4675a02c9fb7708cb55a70cd3070969ef26c6ca Mon Sep 17 00:00:00 2001 From: Boyu Yang Date: Thu, 11 Apr 2024 23:07:03 +0800 Subject: [PATCH] ci: fix the compilation of `grcov` --- .github/workflows/ci.yaml | 5 +++-- Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eff7e5a..cc94fdb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,7 +90,7 @@ jobs: override: true components: llvm-tools-preview - name: Install Grcov - run: grcov --version || cargo install grcov + run: grcov --version || cargo install --locked grcov - name: Generate Code Coverage Report of Unit Tests run: | make coverage-run-unittests @@ -100,6 +100,7 @@ jobs: with: files: coverage-report.info env_vars: OS,RUST_TOOLCHAIN - fail_ci_if_error: true + fail_ci_if_error: false flags: unittests verbose: false + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Makefile b/Makefile index e2aad0b..95fed8d 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ coverage-clean: coverage-install-tools: rustup component add llvm-tools-preview - grcov --version || cargo install grcov + grcov --version || cargo install --locked grcov coverage-run-unittests: mkdir -p "${COVERAGE_PROFRAW_DIR}"