-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add workflow * Create gradle-ethereum-test.yml * remove duplicate * remove duplicate * change order of modules * change order of modules * change order of modules * Revert "change order of modules" This reverts commit 7c38a26. * change order of modules * remove build * make zkevm * make zkevm * adding logs * adding logs * adding logs * adding logs * adding logs * trigger on schedule * spotless * remove redundent steps. * Fix GeneralStateReferenceTest template import * Make tests run in parallel --------- Co-authored-by: Gaurav Ahuja <gauravahuja9@gmail.com>
- Loading branch information
1 parent
a69c91e
commit e096543
Showing
6 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: gradle | ||
|
||
on: | ||
schedule: | ||
- cron: "0 23 * * *" | ||
|
||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
|
||
jobs: | ||
ethereum-tests: | ||
runs-on: ubuntu-latest-128 | ||
steps: | ||
- uses: webfactory/ssh-agent@v0.7.0 | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.CONSTRAINTS_SSH_KEY }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
# The asset URL for the latest release can be found with: | ||
# curl -L -H "Accept: application/vnd.github+json" \ | ||
# -H "Authorization: Bearer YOUR_GH_API_TOKEN" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# https://api.github.com/repos/ConsenSys/corset/releases/latest | ||
# | jq '.assets[] | select(.name|endswith("x86_64-unknown-linux-musl.tar.gz")) | .url' | ||
- name: Install Corset | ||
run: RUSTFLAGS=-Awarnings cargo install --git ssh://git@github.com/ConsenSys/corset --tag v9.7.13 --locked --force | ||
# run: | | ||
# curl -L \ | ||
# -H "Accept: application/octet-stream" \ | ||
# -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# -o corset.tar.gz \ | ||
# https://api.github.com/repos/Consensys/corset/releases/assets/151396061 | ||
# tar xzf corset.tar.gz | ||
# mv corset $HOME | ||
# echo $HOME >> $GITHUB_PATH | ||
|
||
- name: Generate block chain reference tests | ||
run: ./gradlew :reference-tests:generateBlockchainReferenceTests -Dorg.gradle.parallel=true -Dorg.gradle.caching=true | ||
env: | ||
JAVA_OPTS: -Dorg.gradle.daemon=false -DZKEVM_BIN_ORIGINAL_PATH="zkevm-constraints/zkevm.bin" | ||
CORSET_FLAGS: fields,expand,expand,expand | ||
|
||
- name: generate zkevm.bin | ||
run: cd ./zkevm-constraints; make zkevm.bin -B; cd .. | ||
|
||
- name: Run general reference tests | ||
run: ./gradlew referenceGeneralStateTests | ||
env: | ||
JAVA_OPTS: -Dorg.gradle.daemon=false | ||
CORSET_FLAGS: fields,expand,expand,expand | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters