-
Notifications
You must be signed in to change notification settings - Fork 469
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 secondary-relay-feed
- Loading branch information
Showing
40 changed files
with
948 additions
and
262 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
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
runs-on: ubuntu-8 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
@@ -49,23 +49,18 @@ jobs: | |
cache-dependency-path: '**/yarn.lock' | ||
|
||
- name: Install rust stable | ||
uses: actions-rs/toolchain@v1 | ||
id: install-rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: "stable" | ||
override: true | ||
components: 'llvm-tools-preview, rustfmt, clippy' | ||
targets: 'wasm32-wasi, wasm32-unknown-unknown' | ||
|
||
- name: Install grcov | ||
uses: actions-rs/install@v0.1 | ||
uses: jaxxstorm/action-install[email protected] | ||
with: | ||
crate: grcov | ||
version: latest | ||
use-tool-cache: true | ||
|
||
- name: Install rust wasm targets | ||
run: rustup target add wasm32-wasi wasm32-unknown-unknown | ||
repo: mozilla/grcov | ||
tag: v0.8.18 | ||
extension: "\\.bz2" | ||
cache: enable | ||
|
||
- name: Cache Rust intermediate build products | ||
uses: actions/cache@v3 | ||
|
@@ -148,22 +143,13 @@ jobs: | |
echo RUSTDOCFLAGS="-Cpanic=abort" >> $GITHUB_ENV | ||
- name: Clippy check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all --manifest-path arbitrator/Cargo.toml -- -D warnings | ||
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings | ||
|
||
- name: Run rust tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all --manifest-path arbitrator/Cargo.toml | ||
run: cargo test --all --manifest-path arbitrator/Cargo.toml | ||
|
||
- name: Rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all --manifest-path arbitrator/Cargo.toml -- --check | ||
run: cargo fmt --all --manifest-path arbitrator/Cargo.toml -- --check | ||
|
||
- name: Make proofs from test cases | ||
run: make -j test-gen-proofs | ||
|
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,10 @@ | ||
# poll the nitro endpoint until we get a 0 return code | ||
while true | ||
do | ||
curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":45678,"method":"eth_chainId","params":[]}' 'http://localhost:8547' | ||
if [ "$?" -eq "0" ]; then | ||
exit 0 | ||
else | ||
sleep 20 | ||
fi | ||
done |
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.