chore: structure action as expected #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download proof params | ||
on: workflow_call | ||
workflow_call: | ||
inputs: | ||
# The hash of the parameters.json file. | ||
parameters-json-hash: | ||
required: true | ||
type: string | ||
#secrets: | ||
# token: | ||
# required: true | ||
jobs: | ||
download: | ||
runs-on: ubuntu-latest | ||
name: Download proof params | ||
steps: | ||
#- uses: actions/checkout@v4 | ||
- name: Get run-id from latest proof-params workflow run | ||
uses: octokit/[email protected] | ||
id: latest-proof-params | ||
with: | ||
route: GET /repos/filecoin-project/rust-fil-proofs/actions/workflows/proof-params.yml/runs?per_page=1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Download all Artifacts from proof-params workflow | ||
uses: actions/download-artifact@v4 | ||
with: | ||
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 }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Obtain Filecoin IPP parameter file | ||
# paramfetch is using `ipget` which currently always times out on | ||
# CI, hence get this file via HTTP instead. | ||
#cargo run --release --bin paramfetch -- -a -j srs-inner-product.json | ||
# `--insecure` is needed due to an outdated base systems. | ||
run: curl --insecure https://proofs.filecoin.io/v28-fil-inner-product-v1.srs --output /var/tmp/filecoin-proof-parameters/ | ||
v28-fil-inner-product-v1.srs | ||
- name: List parameter files | ||
run: ls -al /var/tmp/filecoin-proof-parameters/ |