Skip to content

Commit

Permalink
ci: automatize PPs generation on major version bumps (#450)
Browse files Browse the repository at this point in the history
This PR carries over from DQ the script used to generate the PPs, and
adds an action to automatically trigger it when preparing a PR for a
major version bump. The action should be manually runnable as well.
  • Loading branch information
delehef authored Feb 5, 2025
1 parent 55475eb commit 3ac7a3e
Show file tree
Hide file tree
Showing 5 changed files with 1,068 additions and 74 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,28 @@ jobs:
crate-release-all: true
pr-meta-comment: false
pr-merge-strategy: "squash"
public-params:
if: inputs.bump == "major"
name: Generate & Upload PPs
runs-on: ['memory:32GB']
environment: CI
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-11-09
- name: Check aws is installed
run: aws --version
- uses: actions/setup-go@v5
with:
go-version: '1.20' # The Go version to download (if necessary) and use.
- name: Generate PPs
run: |
ulimit -s unlimited
cargo run --release --bin gen-params
- name: Upload PPs
run: aws s3 cp --no-progress --recursive zkmr_params s3://lagrange-public-parameters --endpoint-url=https://428e47101872e479a0c311b576430fac.r2.cloudflarestorage.com
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eeur
Loading

0 comments on commit 3ac7a3e

Please sign in to comment.