From 536bca6090eeef2bef0ef95bb6b5bfc5ad4bf792 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Wed, 18 Sep 2024 13:56:51 +0300 Subject: [PATCH] rm --- .github/actions/nss/action.yml | 14 +++++++------- .github/workflows/check.yml | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/actions/nss/action.yml b/.github/actions/nss/action.yml index a90ccf8af6..b8f7470f38 100644 --- a/.github/actions/nss/action.yml +++ b/.github/actions/nss/action.yml @@ -90,21 +90,21 @@ runs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: repository: nss-dev/nss - path: ../nss + path: nss - name: Checkout NSPR if: env.BUILD_NSS == '1' uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: repository: nss-dev/nspr - path: ../nspr + path: nspr - name: Get head revisions if: env.BUILD_NSS == '1' shell: bash run: | - NSS_HEAD=$(git -C ../nss rev-parse HEAD) - NSPR_HEAD=$(git -C ../nspr rev-parse HEAD) + NSS_HEAD=$(git -C nss rev-parse HEAD) + NSPR_HEAD=$(git -C nspr rev-parse HEAD) echo "NSS_HEAD=$NSS_HEAD" >> "$GITHUB_ENV" echo "NSPR_HEAD=$NSPR_HEAD" >> "$GITHUB_ENV" @@ -113,7 +113,7 @@ runs: if: env.BUILD_NSS == '1' && runner.environment == 'github-hosted' uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: - path: ../dist + path: dist key: nss-${{ runner.os }}-${{ inputs.type }}-${{ env.NSS_HEAD }}-${{ env.NSPR_HEAD }} - name: Check if build is needed @@ -186,8 +186,8 @@ runs: echo "NSS_DIR=$NSS_DIR" >> "$GITHUB_ENV" echo "NSS_PREBUILT=1" >> "$GITHUB_ENV" env: - NSS_DIR: ${{ github.workspace }}/../nss - NSPR_DIR: ${{ github.workspace }}/../nspr + NSS_DIR: ${{ github.workspace }}/nss + NSPR_DIR: ${{ github.workspace }}/nspr - name: Build shell: bash diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fb7877b9ee..cd936e34e5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -89,6 +89,11 @@ jobs: RUST_LOG: warn BUILD_DIR: ${{ matrix.type == 'release' && 'release' || 'debug' }} + # It looks like the CodeCov action is uploading some files from the NSS source + # as part of the coverage report, and that makes it fail. Prevent that. + - run: rm -rf "$NSS_DIR" + if: matrix.type == 'debug' && matrix.rust-toolchain == 'stable' + - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 with: file: lcov.info