Skip to content

Commit

Permalink
Merge pull request #31 from lambdaclass/update_to_0_5
Browse files Browse the repository at this point in the history
Update to 0.6.0 (for real)
  • Loading branch information
gabrielbosio authored Sep 16, 2024
2 parents e1f956f + d5b0885 commit 7a2b555
Show file tree
Hide file tree
Showing 281 changed files with 22,424 additions and 2,877 deletions.
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
49 changes: 49 additions & 0 deletions .github/workflows/explorer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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 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
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

0 comments on commit 7a2b555

Please sign in to comment.