Skip to content

Commit

Permalink
Use the correct parameters path and download commands in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Nov 19, 2021
1 parent 5adfd3c commit 3ec1bff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- name: Fetch path to Zcash parameters
working-directory: ./zebra-consensus
shell: bash
run: echo "ZCASH_PARAMS=$(cargo llvm-cov --lcov --no-report --quiet --output-path /dev/null run --example get-params-path)" >> $GITHUB_ENV
# cargo-llvm-cov doesn't have a silent mode, so we have to extract the path from stderr
run: echo "ZCASH_PARAMS=$(cargo llvm-cov --lcov --no-report run --example get-params-path 2>&1 >/dev/null | tail -1)" >> $GITHUB_ENV
- name: Cache Zcash parameters
id: cache-params
uses: actions/cache@v2
Expand All @@ -61,7 +62,7 @@ jobs:
- name: Fetch Zcash parameters
if: steps.cache-params.outputs.cache-hit != 'true'
working-directory: ./zebra-consensus
run: cargo llvm-cov --lcov --no-report run --example get-params-path
run: cargo llvm-cov --lcov --no-report run --example download-params

- name: Show env vars
run: |
Expand Down

0 comments on commit 3ec1bff

Please sign in to comment.