Skip to content

Commit

Permalink
fix(ci) - make avaiable updated zkeys and updated download script
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Oct 27, 2023
1 parent 62b32ca commit f48318a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/reusable-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ jobs:
- name: Download circom Binary v2.0.8
run: |
mkdir -p /home/runner/work/maci/.local/bin
wget -qO /home/runner/work/maci/.local/bin/circom https://github.com/iden3/circom/releases/download/v2.0.8/circom-linux-amd64
chmod +x /home/runner/work/maci/.local/bin/circom
wget -qO /home/ubuntu/maci/.local/bin/circom https://github.com/iden3/circom/releases/download/v2.0.8/circom-linux-amd64
chmod +x /home/ubuntu/maci/.local/bin/circom
- name: Generate zkeys
# if: ${{ env.CHANGED == 'false' }}
if: ${{ env.CHANGED == 'false' }}
run: |
cd cli
mkdir -p zkeys
wget -qO zkeys/powersOfTau28_hez_final_20.ptau https://maci-devops-zkeys.s3.ap-northeast-2.amazonaws.com/powersOfTau28_hez_final_20.ptau
npx zkey-manager compile -c ./zkeys.config.yml
npx zkey-manager genZkeys -c ./zkeys.config.yml
# - name: Download zkeys
# if: ${{ env.CHANGED == 'false' }}
# run: |
# cd integrationTests
# npm run download-zkeys
- name: Download zkeys
if: ${{ env.CHANGED == 'false' }}
run: |
cd integrationTests
npm run download-zkeys
- name: Bespoke Test
run: |
Expand Down
21 changes: 7 additions & 14 deletions integrationTests/scripts/download_zkeys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@ cd ..

mkdir -p ../cli/zkeys

PKGS="zkeys_10-2-1-2_glibc-211.tar.gz ProcessMessages_10-2-1-2_test.0.zkey TallyVotes_10-1-2_test.0.zkey SubsidyPerBatch_10-1-2_test.0.zkey"
URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.1.2/maci_keys_10-2-1-2_dev.tar.gz
DIR_NAME="maci_keys.tar.gz"
OUT_DIR=../cli/

echo "downloading $URL"
curl $URL -o "$OUT_DIR/$DIR_NAME"
tar -xvf "$OUT_DIR/$DIR_NAME" -C "$OUT_DIR"

BASE_URL=https://maci-develop-fra.s3.eu-central-1.amazonaws.com/v1.1.1-aa4ba27/10-2-1-2
OUT_DIR=../cli/zkeys

for p in $PKGS
do
url="$BASE_URL/$p"
echo "downloading $url"
curl $url -o "$OUT_DIR/$p"
extension="${p##*.}"
if [ "$extension" == "gz" ]
then
tar -xvf "$OUT_DIR/$p" -C "$OUT_DIR"
fi
done

0 comments on commit f48318a

Please sign in to comment.