Skip to content

Commit

Permalink
ci: Optimize PLONK params handling in CI workflow
Browse files Browse the repository at this point in the history
- Modify Continuous Integration (CI) workflows to cache PLONK parameters instead of simply downloading and unpacking them.
- Define conditions to resort to downloading and untarring PLONK params only when cache is not available.
  • Loading branch information
huitseeker committed Sep 11, 2024
1 parent e84c61d commit ed6f130
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ jobs:
- name: Build with Cabal
run: cabal build

# Download and untar the required file
- name: Download and untar PLONK params
# Cache PLONK params download
- name: Cache PLONK params
uses: actions/cache@v3
with:
path: ~/.sp1/circuits/plonk_bn254/v1.0.8-testnet
key: plonk-params-v1.0.8-testnet

- name: Download and untar PLONK params (if not cached)
if: steps.cache-plonk-params.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.sp1/circuits/plonk_bn254/v1.0.8-testnet
wget https://sphinx-plonk-params.s3.amazonaws.com/v1.0.8-testnet.tar.gz -O plonk_params.tar.gz
Expand Down

0 comments on commit ed6f130

Please sign in to comment.