Skip to content

Commit

Permalink
feat: updated setup params (#93)
Browse files Browse the repository at this point in the history
* use updated params

* Update package.json

* fix: artifacts workflow

* try again
  • Loading branch information
Autoparallel authored Jan 16, 2025
1 parent d8de532 commit f00ea35
Show file tree
Hide file tree
Showing 6 changed files with 777 additions and 210 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,55 +105,14 @@ jobs:
# Generate parameters using makefile target
make params
# Verify parameter files were created
for target_dir in builds/target_*b; do
size=$(basename "$target_dir" | sed 's/target_//')
# Calculate ROM length the same way as in Makefile
rom_length=$(echo "${size%b} / 16 + 16" | bc)
# List of expected files
files=(
"aux_params_${size}_rom_length_${rom_length}.bin"
"prover_key_${size}_rom_length_${rom_length}.bin"
"verifier_key_${size}_rom_length_${rom_length}.bin"
)
for file in "${files[@]}"; do
if [ ! -f "$target_dir/artifacts/$file" ]; then
echo "Error: File not found: $file in $target_dir/artifacts"
exit 1
else
echo "Successfully verified: $file"
fi
done
echo "Successfully generated all parameter files for ${size}"
done
echo "Successfully generated all parameter files for ${size}"
- name: Create release artifacts
run: |
# First verify parameter files were created
for target_dir in builds/target_*b; do
size=$(basename "$target_dir" | sed 's/target_//')
# Calculate ROM length the same way as in Makefile
rom_length=$(echo "${size%b} / 16 + 16" | bc)
# List of expected files
files=(
"aux_params_${size}_rom_length_${rom_length}.bin"
"prover_key_${size}_rom_length_${rom_length}.bin"
"verifier_key_${size}_rom_length_${rom_length}.bin"
)
for file in "${files[@]}"; do
if [ ! -f "$target_dir/artifacts/$file" ]; then
echo "Error: File not found: $file in $target_dir/artifacts"
exit 1
else
echo "Successfully verified: $file"
fi
done
echo "Successfully generated all parameter files for ${size}"
Expand Down
Loading

0 comments on commit f00ea35

Please sign in to comment.