Skip to content

Commit

Permalink
rm
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Sep 18, 2024
1 parent 3fd1015 commit 536bca6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/nss/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 536bca6

Please sign in to comment.