From fb6650b8899730f731142fb302937dbfddee6767 Mon Sep 17 00:00:00 2001 From: yngrtc Date: Sat, 7 Dec 2024 15:56:33 -0800 Subject: [PATCH] fix grcov github action --- .github/workflows/grcov.yml | 6 +++--- .github/workflows/tests.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/grcov.yml b/.github/workflows/grcov.yml index f2f5374..33fab2b 100644 --- a/.github/workflows/grcov.yml +++ b/.github/workflows/grcov.yml @@ -50,8 +50,8 @@ jobs: args: --lib --no-fail-fast ${{ matrix.cargo_flags }} env: CARGO_INCREMENTAL: "0" - RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off' - RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off' + RUSTFLAGS: '-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug' + RUSTDOCFLAGS: '-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug' - name: Generate coverage data id: grcov @@ -75,7 +75,7 @@ jobs: --service-name "GitHub Actions" \ --service-number ${{ github.run_id }} - name: Upload coverage as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lcov.info # path: ${{ steps.grcov.outputs.report }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 605a7f2..61183a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: docker cp chat-server:/usr/src/app/logs/. . - name: Upload logs as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: logs path: |