Skip to content

Commit

Permalink
chore: pass in the hash of the parameters.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Aug 28, 2024
1 parent 5aa8244 commit f3ded5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ jobs:

- name: Download the proof params
uses: ./.github/workflows/proof-params-download.yml
with:
parameters-json-hash: ${{ hashFiles('filecoin-proofs/parameters.json') }}

- name: Test in release profile
run: cargo test --verbose --release --workspace --all-targets
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/proof-params-download.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Download proof params

on: workflow_call
#workflow_call:
#inputs:
# config-path:
# required: true
# type: string
workflow_call:
inputs:
# The hash of the parameters.json file.
parameters-json-hash:
required: true
type: string
#secrets:
# token:
# required: true
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Download all Artifacts from proof-params workflow
uses: actions/download-artifact@v4
with:
pattern: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}-*
pattern: proof-params-v28-n-${{ inputs.parameters-json-hash }}-*
path: /var/tmp/filecoin-proof-parameters/
merge-multiple: true
run-id: ${{ fromJson(steps.latest-proof-params.outputs.data).workflow_runs[0].id }}
Expand Down

0 comments on commit f3ded5a

Please sign in to comment.