Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure case where block verification is slower #25

Draft
wants to merge 6 commits into
base: mina
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .github/workflows/build-contracts.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Build contracts
on:
push:
branches:
- main
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'contracts/**'
- 'foundry.toml'
- '.github/workflows/build-contracts.yml'

jobs:
build:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/**'
- 'aggregator/**'
- 'common/**'
- 'core/**'
- 'metrics/**'
- '.github/workflows/build-go.yml'
env:
FFI_FOR_RELEASE: false
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'batcher/**'
- '.github/workflows/build-rust.yml'

jobs:
build:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/explorer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Deploy Explorer"

on:
workflow_dispatch:
inputs:
environment:
type: environment
description: Select the environment

jobs:
Deploy:
name: Deploy Explorer to ${{ inputs.environment }}
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}

steps:
- name: Connect to Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
version: 1.70.0

- name: Checkout Repository
uses: actions/checkout@v4

- name: Display Branch Name
env:
REF: ${{ github.ref_name }}
run: |
echo "Current Branch: ${REF}"

- name: Deploy to server
env:
HOST_NAME: ${{ vars.EXPLORER_HOST }}
USERNAME: ${{ vars.USERNAME }}
APP_DIR: ${{ vars.EXPLORER_DIRECTORY }}
SERVICE_NAME: ${{ vars.SERVICE_NAME }}
REF: ${{ github.ref_name }}
run: |
ssh -o "StrictHostKeyChecking=no" ${USERNAME}@${HOST_NAME} "
cd ${APP_DIR} &&
git fetch &&
git reset --hard HEAD &&
git clean -fd &&
git checkout ${REF} &&
git pull &&
sudo systemctl restart ${SERVICE_NAME}
"
7 changes: 7 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
- master
- main
pull_request:
paths:
- 'operator/**'
- 'aggregator/**'
- 'common/**'
- 'core/**'
- 'metrics/**'
- '.github/workflows/golangci-lint.yml'

permissions:
contents: read
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/lint-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint contracts
on:
push:
branches: [main]
pull_request:
branches: ["*"]
paths:
- "contracts/src/core/*.sol"
- ".github/workflows/lint-contracts.yml"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: contracts

- name: Run Solhint
run: npm run lint:sol
working-directory: contracts
9 changes: 8 additions & 1 deletion .github/workflows/test-halo2-ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/halo2ipa/**'
- '.github/workflows/test-halo2-ipa.yml'

jobs:
test:
Expand All @@ -25,6 +28,10 @@ jobs:
with:
go-version: '1.22'
cache: false

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test Halo2-IPA Rust
run: make test_halo2_ipa_rust_ffi
- name: Test Halo2-IPA go bindings
run: make test_halo2_ipa_go_bindings_linux
9 changes: 8 additions & 1 deletion .github/workflows/test-halo2-kzg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/halo2kzg/**'
- '.github/workflows/test-halo2-kzg.yml'

jobs:
test:
Expand All @@ -25,6 +28,10 @@ jobs:
with:
go-version: '1.22'
cache: false

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test Halo2-KZG Rust
run: make test_halo2_kzg_rust_ffi
- name: Test Halo2-KZG go bindings
run: make test_halo2_kzg_go_bindings_linux
37 changes: 37 additions & 0 deletions .github/workflows/test-merkle-tree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: test-merkle-tree

on:
merge_group:
push:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/merkle_tree/**'
- '.github/workflows/test-merkle-tree.yml'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clear device space
run: |
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test Merkle Tree Rust
run: make test_merkle_tree_rust_ffi
- name: Test Merkle Tree go bindings
run: make test_merkle_tree_go_bindings_linux
9 changes: 8 additions & 1 deletion .github/workflows/test-risc-zero.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/risc_zero/**'
- '.github/workflows/test-risc-zero.yml'

jobs:
test:
Expand All @@ -25,6 +28,10 @@ jobs:
with:
go-version: '1.22'
cache: false

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test Risc Zero Rust
run: make test_risc_zero_rust_ffi
- name: Test Risc Zero go bindings
run: make test_risc_zero_go_bindings_linux
6 changes: 6 additions & 0 deletions .github/workflows/test-sp1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [main]
pull_request:
branches: ["*"]
paths:
- 'operator/sp1/**'
- '.github/workflows/test-sp1.yml'

jobs:
test:
Expand All @@ -16,6 +19,9 @@ jobs:
with:
go-version: '1.22'
cache: false
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test SP1 Rust
run: make test_sp1_rust_ffi
- name: Test SP1 go bindings
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "examples/zkquiz/contracts/lib/openzeppelin-contracts"]
path = examples/zkquiz/contracts/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "examples/validating-public-input/contracts/lib/forge-std"]
path = examples/validating-public-input/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
Loading
Loading