-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extract parameter download in extra workflow
- Loading branch information
Showing
2 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,25 +171,27 @@ jobs: | |
# run: ls -lR /var/tmp/filecoin-proof-parameters/ | ||
|
||
|
||
- 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-${{ hashFiles('filecoin-proofs/parameters.json') }}-* | ||
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: List parameter files | ||
run: ls -al /var/tmp/filecoin-proof-parameters/ | ||
#- 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-${{ hashFiles('filecoin-proofs/parameters.json') }}-* | ||
# 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: List parameter files | ||
# run: ls -al /var/tmp/filecoin-proof-parameters/ | ||
|
||
- name: Download the proof params | ||
uses: ./.github/workflows/proof-params-download.yml | ||
|
||
- name: Test in release profile | ||
run: cargo test --verbose --release --workspace --all-targets | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Download proof params | ||
|
||
on: workflow_call | ||
#workflow_call: | ||
#inputs: | ||
# config-path: | ||
# 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-${{ hashFiles('filecoin-proofs/parameters.json') }}-* | ||
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: List parameter files | ||
run: ls -al /var/tmp/filecoin-proof-parameters/ |