mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-08 00:13:10 +00:00
Updated upload steps according to comments
https://github.com/codex-storage/infra-codex/issues/123
This commit is contained in:
parent
66c5d51c4c
commit
b84ab1c4d5
29
.github/workflows/generate.yml
vendored
29
.github/workflows/generate.yml
vendored
@ -46,6 +46,15 @@ env:
|
||||
nim_version: 1.6.14
|
||||
nodejs_version: 18.15
|
||||
ceremony_source: https://storage.googleapis.com/zkevm/ptau/powersOfTau28_hez_final_21.ptau
|
||||
s3_bucket_path: proving-key
|
||||
circuit_file: workflow/build/proof_main.zkey
|
||||
storage_url: https://ceremony.codex.storage
|
||||
s3_endpoint: ${{ secrets.S3_ENDPOINT }}
|
||||
s3_bucket: ${{ secrets.S3_BUCKET }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
defaults:
|
||||
@ -129,13 +138,15 @@ jobs:
|
||||
|
||||
- name: Upload to storage
|
||||
run: |
|
||||
hash=($(shasum -a 256 ${{ env.CIRCUIT_FILE }}))
|
||||
aws s3 cp ${{ env.CIRCUIT_FILE }} s3://${{ env.AWS_S3_BUCKET }}/${hash} --endpoint-url ${AWS_S3_ENDPOINT}
|
||||
aws s3 cp ${{ env.CIRCUIT_FILE }} s3://${{ env.AWS_S3_BUCKET }}/`basename ${{ env.CIRCUIT_FILE }}` --endpoint-url ${AWS_S3_ENDPOINT}
|
||||
# Variables
|
||||
hash=($(shasum -a 256 ${{ env.circuit_file }}))
|
||||
[[ -z "${{ env.s3_bucket_path}}" ]] && storage_file="${hash}" || storage_file="${{ env.s3_bucket_path}}/${hash}"
|
||||
echo "storage_file=${storage_file}" >>$GITHUB_ENV
|
||||
# Upload
|
||||
aws s3 cp ${{ env.circuit_file }} s3://${{ env.s3_bucket }}/${storage_file} --endpoint-url ${{ env.s3_endpoint }}
|
||||
|
||||
- name: Show download URL
|
||||
run: |
|
||||
echo "Download URL: ${{ env.download_url }}"
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||
AWS_S3_ENDPOINT: ${{ secrets.AWS_S3_ENDPOINT }}
|
||||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
||||
CIRCUIT_FILE: workflow/build/proof_main.zkey
|
||||
download_url: ${{ format('{0}/{1}', env.storage_url, env.storage_file) }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user