-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dont-force-delayed
- Loading branch information
Showing
141 changed files
with
12,351 additions
and
847 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ env: | |
WABT_VERSION: 1.0.32 | ||
|
||
jobs: | ||
coverage: | ||
arbitrator: | ||
name: Run Arbitrator tests | ||
runs-on: ubuntu-8 | ||
steps: | ||
|
@@ -31,16 +31,24 @@ jobs: | |
|
||
- name: Install Ubuntu dependencies | ||
run: | | ||
sudo add-apt-repository -y ppa:ethereum/ethereum | ||
sudo apt-get update && sudo apt-get install -y \ | ||
build-essential cmake ethereum lld-14 libudev-dev | ||
build-essential cmake lld-14 libudev-dev | ||
sudo ln -s /usr/bin/wasm-ld-14 /usr/local/bin/wasm-ld | ||
- name: Install go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.x | ||
|
||
- name: Install custom go-ethereum | ||
run: | | ||
cd /tmp | ||
git clone --branch v1.13.8 --depth 1 https://github.com/ethereum/go-ethereum.git | ||
cd go-ethereum | ||
# Enable KZG point evaluation precompile early | ||
sed -i 's#var PrecompiledContractsBerlin = map\[common.Address\]PrecompiledContract{#\0 common.BytesToAddress([]byte{0x0a}): \&kzgPointEvaluation{},#g' core/vm/contracts.go | ||
go build -o /usr/local/bin/geth ./cmd/geth | ||
- name: Setup nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -54,14 +62,6 @@ jobs: | |
components: 'llvm-tools-preview, rustfmt, clippy' | ||
targets: 'wasm32-wasi, wasm32-unknown-unknown' | ||
|
||
- name: Install grcov | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: mozilla/grcov | ||
tag: v0.8.18 | ||
extension: "\\.bz2" | ||
cache: enable | ||
|
||
- name: Cache Rust intermediate build products | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -96,6 +96,9 @@ jobs: | |
make -j | ||
make install | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Cache cbrotli | ||
uses: actions/cache@v3 | ||
id: cache-cbrotli | ||
|
@@ -135,13 +138,6 @@ jobs: | |
- name: Make arbitrator libraries | ||
run: make -j wasm-ci-build | ||
|
||
- name: Enable rust instrumentation | ||
run: | | ||
echo LLVM_PROFILE_FILE="your_name-%p-%m.profraw" >> $GITHUB_ENV | ||
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV | ||
echo RUSTFLAGS="-Cinstrument-coverage" >> $GITHUB_ENV | ||
echo RUSTDOCFLAGS="-Cpanic=abort" >> $GITHUB_ENV | ||
- name: Clippy check | ||
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings | ||
|
||
|
@@ -154,18 +150,6 @@ jobs: | |
- name: Make proofs from test cases | ||
run: make -j test-gen-proofs | ||
|
||
- name: Create code-coverage files | ||
run: | | ||
grcov . --binary-path arbitrator/target/release/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info | ||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./lcov.info | ||
fail_ci_if_error: true | ||
verbose: false | ||
|
||
- name: Start geth server | ||
run: | | ||
geth --dev --http --http.port 8545 & | ||
|
@@ -177,4 +161,5 @@ jobs: | |
cd contracts | ||
yarn install | ||
yarn build | ||
yarn build:forge:yul | ||
yarn hardhat --network localhost test test/prover/*.ts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release CI | ||
run-name: Release CI triggered from @${{ github.actor }} of ${{ github.head_ref }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_run: | ||
runs-on: ubuntu-8 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }} | ||
restore-keys: ${{ runner.os }}-buildx- | ||
|
||
- name: Startup Nitro testnode | ||
run: ./scripts/startup-testnode.bash |
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
Oops, something went wrong.