Skip to content

Commit 281967f

Browse files
committed
Merge branch 'main' into mina
2 parents a85d7f9 + 7c32f61 commit 281967f

308 files changed

Lines changed: 26135 additions & 3709 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-contracts.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Build contracts
22
on:
33
push:
4-
branches:
5-
- main
4+
branches: [main]
65
pull_request:
76
branches: ["*"]
7+
paths:
8+
- 'contracts/**'
9+
- 'foundry.toml'
10+
- '.github/workflows/build-contracts.yml'
811

912
jobs:
1013
build:

.github/workflows/build-go.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
branches: [main]
77
pull_request:
88
branches: ["*"]
9+
paths:
10+
- 'operator/**'
11+
- 'aggregator/**'
12+
- 'common/**'
13+
- 'core/**'
14+
- 'metrics/**'
15+
- '.github/workflows/build-go.yml'
916
env:
1017
FFI_FOR_RELEASE: false
1118
jobs:

.github/workflows/build-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [main]
77
pull_request:
88
branches: ["*"]
9+
paths:
10+
- 'batcher/**'
11+
- '.github/workflows/build-rust.yml'
912

1013
jobs:
1114
build:

.github/workflows/explorer.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Deploy Explorer"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
type: environment
8+
description: Select the environment
9+
10+
jobs:
11+
Deploy:
12+
name: Deploy Explorer to ${{ inputs.environment }}
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: ${{ inputs.environment }}
16+
17+
steps:
18+
- name: Connect to Tailscale
19+
uses: tailscale/github-action@v2
20+
with:
21+
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
22+
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
23+
tags: tag:ci
24+
version: 1.70.0
25+
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
29+
- name: Display Branch Name
30+
env:
31+
REF: ${{ github.ref_name }}
32+
run: |
33+
echo "Current Branch: ${REF}"
34+
35+
- name: Deploy to server
36+
env:
37+
HOST_NAME: ${{ vars.EXPLORER_HOST }}
38+
USERNAME: ${{ vars.USERNAME }}
39+
APP_DIR: ${{ vars.EXPLORER_DIRECTORY }}
40+
SERVICE_NAME: ${{ vars.SERVICE_NAME }}
41+
REF: ${{ github.ref_name }}
42+
run: |
43+
ssh -o "StrictHostKeyChecking=no" ${USERNAME}@${HOST_NAME} "
44+
cd ${APP_DIR} &&
45+
git fetch &&
46+
git reset --hard HEAD &&
47+
git clean -fd &&
48+
git checkout ${REF} &&
49+
git pull &&
50+
sudo systemctl restart ${SERVICE_NAME}
51+
"

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
- master
66
- main
77
pull_request:
8+
paths:
9+
- 'operator/**'
10+
- 'aggregator/**'
11+
- 'common/**'
12+
- 'core/**'
13+
- 'metrics/**'
14+
- '.github/workflows/golangci-lint.yml'
815

916
permissions:
1017
contents: read
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint contracts
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: ["*"]
7+
paths:
8+
- "contracts/src/core/*.sol"
9+
- ".github/workflows/lint-contracts.yml"
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
23+
- name: Install dependencies
24+
run: npm install
25+
working-directory: contracts
26+
27+
- name: Run Solhint
28+
run: npm run lint:sol
29+
working-directory: contracts

.github/workflows/test-halo2-ipa.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [main]
77
pull_request:
88
branches: ["*"]
9+
paths:
10+
- 'operator/halo2ipa/**'
11+
- '.github/workflows/test-halo2-ipa.yml'
912

1013
jobs:
1114
test:
@@ -25,6 +28,10 @@ jobs:
2528
with:
2629
go-version: '1.22'
2730
cache: false
28-
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
- name: Test Halo2-IPA Rust
35+
run: make test_halo2_ipa_rust_ffi
2936
- name: Test Halo2-IPA go bindings
3037
run: make test_halo2_ipa_go_bindings_linux

.github/workflows/test-halo2-kzg.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [main]
77
pull_request:
88
branches: ["*"]
9+
paths:
10+
- 'operator/halo2kzg/**'
11+
- '.github/workflows/test-halo2-kzg.yml'
912

1013
jobs:
1114
test:
@@ -25,6 +28,10 @@ jobs:
2528
with:
2629
go-version: '1.22'
2730
cache: false
28-
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
- name: Test Halo2-KZG Rust
35+
run: make test_halo2_kzg_rust_ffi
2936
- name: Test Halo2-KZG go bindings
3037
run: make test_halo2_kzg_go_bindings_linux
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: test-merkle-tree
2+
3+
on:
4+
merge_group:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: ["*"]
9+
paths:
10+
- 'operator/merkle_tree/**'
11+
- '.github/workflows/test-merkle-tree.yml'
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Clear device space
18+
run: |
19+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
20+
sudo rm -rf /usr/local/lib/android
21+
sudo rm -rf /opt/ghc
22+
sudo rm -rf /usr/local/.ghcup
23+
sudo rm -rf /usr/share/dotnet
24+
sudo rm -rf /opt/ghc
25+
sudo rm -rf "/usr/local/share/boost"
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v5
28+
with:
29+
go-version: '1.22'
30+
cache: false
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
- name: Test Merkle Tree Rust
35+
run: make test_merkle_tree_rust_ffi
36+
- name: Test Merkle Tree go bindings
37+
run: make test_merkle_tree_go_bindings_linux

.github/workflows/test-risc-zero.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [main]
77
pull_request:
88
branches: ["*"]
9+
paths:
10+
- 'operator/risc_zero/**'
11+
- '.github/workflows/test-risc-zero.yml'
912

1013
jobs:
1114
test:
@@ -25,6 +28,10 @@ jobs:
2528
with:
2629
go-version: '1.22'
2730
cache: false
28-
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
- name: Test Risc Zero Rust
35+
run: make test_risc_zero_rust_ffi
2936
- name: Test Risc Zero go bindings
3037
run: make test_risc_zero_go_bindings_linux

0 commit comments

Comments
 (0)