Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feat/consolidated_…
Browse files Browse the repository at this point in the history
…hashes
  • Loading branch information
Nashtare committed Sep 12, 2024
2 parents 7cb3743 + 5bb3a6a commit 3be8946
Show file tree
Hide file tree
Showing 44 changed files with 1,569 additions and 1,170 deletions.
9 changes: 7 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@
- changed-files:
- any-glob-to-any-file: zero_bin/**

# Add 'specs' label to any changes within 'docs' folder.
# Add 'specs' label to any changes within 'docs' or `book` folder.
'specs':
- changed-files:
- any-glob-to-any-file: docs/**
- any-glob-to-any-file: ['docs/**', 'book/**']

# Add 'crate: common' label to any changes within 'common' folder.
'crate: common':
- changed-files:
- any-glob-to-any-file: common/**

# Add 'ci' label to any changes within '.github' folder.
'ci':
- changed-files:
- any-glob-to-any-file: .github/**
31 changes: 28 additions & 3 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: zkEVM mdbook
on:
push:
branches: [develop, main]
pull_request:
branches:
- "**"

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -20,15 +23,37 @@ jobs:
command: install
args: mdbook

- name: Install mdbook-katex and mdbook-bib
- name: Install preprocessors
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-katex mdbook-bib
args: mdbook-katex mdbook-bib mdbook-mermaid

- name: Initialize mermaid preprocessor
run: mdbook-mermaid install book

- name: Build book
run: mdbook build book

- name: Upload built book
uses: actions/upload-artifact@v3
with:
name: built-mdbook
path: ./book/book

deploy:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- name: Download built book
uses: actions/download-artifact@v3
with:
name: built-mdbook
path: ./book/book

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Test mpt_trie
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -47,7 +47,12 @@ jobs:
name: Test trace_decoder
runs-on: zero-ci
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
env:
RUST_LOG: info
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1

if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -60,18 +65,17 @@ jobs:
with:
cache-on-failure: true

- name: Test in trace_decoder subdirectory
- name: build # build separately so test logs are actually nice
run: cargo build --tests --manifest-path trace_decoder/Cargo.toml

- name: test
run: cargo test --release --manifest-path trace_decoder/Cargo.toml -- --nocapture
env:
RUST_LOG: info
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1

test_proof_gen:
name: Test proof_gen
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -96,7 +100,7 @@ jobs:
name: Test evm_arithmetization
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -121,7 +125,7 @@ jobs:
name: Test zero_bin
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -132,7 +136,7 @@ jobs:
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Test in zero_bin subdirectory
run: |
Expand All @@ -154,7 +158,7 @@ jobs:
name: Test zk_evm_proc_macro
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -218,7 +222,7 @@ jobs:
name: Rustdoc, Formatting and Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: ${{ ! contains(toJSON(github.event.commits.*.message), '[skip-ci]') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
*.iml
.idea/
.vscode
/**/*.ignoreme
**/output.log

Loading

0 comments on commit 3be8946

Please sign in to comment.