Skip to content

chore: structure action as expected #7

chore: structure action as expected

chore: structure action as expected #7

name: Download proof params
on: workflow_call
workflow_call:

Check failure on line 4 in .github/workflows/proof-params-download.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/proof-params-download.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
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/