Skip to content

Commit

Permalink
they dont know me son
Browse files Browse the repository at this point in the history
  • Loading branch information
fbielejec committed Nov 28, 2024
1 parent 7fef282 commit 396c145
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/actions/prepare-rust-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ runs:
steps:
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ inputs.ssh-private-key }}
ssh-private-key: |
${{ inputs.poseidon-gadget-private-key }}
${{ inputs.zkos-circuits-private-key }}
- name: Install Rust toolchain
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v7
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/_build-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- name: Prepare Rust env
uses: ./.github/actions/prepare-rust-env
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
poseidon-gadget-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
zkos-circuits-private-key: ${{ secrets.ZKOS_CIRCUITS_SSH_PRIVATE_KEY }}

- name: Setup node
uses: asdf-vm/actions/install@v3
Expand All @@ -36,16 +37,7 @@ jobs:
shell: bash
run: make deps && make lint-contracts

# - name: Run tmate
# env:
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# CI_GH_TOKEN: ${{ secrets.CI_GH_TOKEN }}
# uses: mxschmitt/action-tmate@v2

- name: Regenerate verifier and Poseidon contracts and ensure that they are up-to-date
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
CI_GH_TOKEN: ${{ secrets.CI_GH_TOKEN }}
run: |
make generate-verifier-contracts && make generate-poseidon-contracts && \
git diff --exit-code -- contracts/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_check-vars-and-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Check secrets
run: |
if [[ \
-z '${{ secrets.ZKOS_CIRCUITS_SSH_PRIVATE_KEY }}' || \
-z '${{ secrets.SSH_PRIVATE_KEY }}' || \
-z '${{ secrets.VERCEL_ORG_ID }}' || \
-z '${{ secrets.VERCEL_PROJECT_ID }}' || \
Expand Down

0 comments on commit 396c145

Please sign in to comment.