Skip to content

Commit

Permalink
speedups
Browse files Browse the repository at this point in the history
  • Loading branch information
fbielejec committed Nov 28, 2024
1 parent 3912453 commit 4e7008a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 50 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/_build-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ jobs:
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

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1.2.0
with:
cache-key: custom-seed-coverage-${{ github.ref_name }}
cache-restore-keys: |-
contract-suite
version: nightly

- name: Lint contracts code (excluding generated code)
shell: bash
run: make deps && make lint-contracts
# - name: Setup node
# uses: asdf-vm/actions/install@v3

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1.2.0
# with:
# cache-key: custom-seed-coverage-${{ github.ref_name }}
# cache-restore-keys: |-
# contract-suite
# version: nightly

# - name: Lint contracts code (excluding generated code)
# shell: bash
# run: make deps && make lint-contracts

- name: Regenerate verifier and Poseidon contracts and ensure that they are up-to-date
run: |
Expand Down
72 changes: 36 additions & 36 deletions .github/workflows/on-pull-request-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,44 @@ jobs:
uses: ./.github/workflows/_build-contracts.yml
secrets: inherit

deploy-contracts:
name: Deploy contracts
needs: [build-contracts]
uses: ./.github/workflows/_deploy-contracts.yml
secrets: inherit
# deploy-contracts:
# name: Deploy contracts
# needs: [build-contracts]
# uses: ./.github/workflows/_deploy-contracts.yml
# secrets: inherit

rust-crates-checks:
name: Rust crates checks
needs: [build-contracts]
uses: ./.github/workflows/_rust-crates-checks.yml
secrets: inherit
# rust-crates-checks:
# name: Rust crates checks
# needs: [build-contracts]
# uses: ./.github/workflows/_rust-crates-checks.yml
# secrets: inherit

build-wasm-packages:
name: Build wasm packages
needs: [check-vars-and-secrets]
uses: ./.github/workflows/_build-wasm-packages.yml
secrets: inherit
# build-wasm-packages:
# name: Build wasm packages
# needs: [check-vars-and-secrets]
# uses: ./.github/workflows/_build-wasm-packages.yml
# secrets: inherit

ts-checks:
name: Typescript modules checks
needs: [build-contracts, build-wasm-packages]
uses: ./.github/workflows/_ts-checks.yml
secrets: inherit
# ts-checks:
# name: Typescript modules checks
# needs: [build-contracts, build-wasm-packages]
# uses: ./.github/workflows/_ts-checks.yml
# secrets: inherit

ts-sdk-playwright-tests:
name: Typescript shielder-sdk Playwright tests
needs: [build-contracts, build-wasm-packages]
uses: ./.github/workflows/_ts-sdk-playwright-tests.yml
secrets: inherit
# ts-sdk-playwright-tests:
# name: Typescript shielder-sdk Playwright tests
# needs: [build-contracts, build-wasm-packages]
# uses: ./.github/workflows/_ts-sdk-playwright-tests.yml
# secrets: inherit

clean-wasm-artifact:
name: Clean wasm artifact
runs-on: ubuntu-22.04
if: ${{ always() }}
# dependencies should include all jobs, which interact with wasm artifact
needs: [build-wasm-packages, ts-checks, ts-sdk-playwright-tests]
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: |
crates-shielder-wasm-pkg
# clean-wasm-artifact:
# name: Clean wasm artifact
# runs-on: ubuntu-22.04
# if: ${{ always() }}
# # dependencies should include all jobs, which interact with wasm artifact
# needs: [build-wasm-packages, ts-checks, ts-sdk-playwright-tests]
# steps:
# - uses: geekyeggo/delete-artifact@v5
# with:
# name: |
# crates-shielder-wasm-pkg

0 comments on commit 4e7008a

Please sign in to comment.