-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an rpc client to interface with block engine http server
- Loading branch information
0 parents
commit f064f21
Showing
15 changed files
with
5,040 additions
and
0 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,41 @@ | ||
name: Setup Rust | ||
description: Installs rust in a bare metal fashion | ||
inputs: | ||
caller-workflow-name: | ||
description: 'Name of workflow used for creating a cache key in ASCII format.' | ||
required: true | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Generate cache key | ||
id: cache-key-generator | ||
run: echo "cache-key=$(echo ${{inputs.caller-workflow-name}} | tr ' ' '_')" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Check cache key | ||
run: "echo Cache key: ${{ steps.cache-key-generator.outputs.cache-key }}" | ||
shell: bash | ||
|
||
- name: cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo | ||
key: ${{ runner.os }}-cargo-${{ steps.cache-key-generator.outputs.cache-key }}-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: cache rust files | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ steps.cache-key-generator.outputs.cache-key }}-${{ hashFiles('**/*.rs') }} | ||
|
||
- name: Check rust version | ||
run: | | ||
rustc --version || true; | ||
cargo --version || true; | ||
cargo clippy --version || true; | ||
cargo fmt --version || true; | ||
shell: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
lint_build_test: | ||
runs-on: ubuntu-20.04-16c-64g | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Sanity Check | ||
run: | | ||
cat /proc/cpuinfo | ||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
caller-workflow-name: test | ||
|
||
- name: Workspace sort | ||
run: cargo sort --workspace --check | ||
shell: bash | ||
|
||
- name: Fmt | ||
run: cargo fmt --all --check | ||
shell: bash | ||
|
||
- name: Clippy check | ||
run: cargo clippy --all-features --all-targets --tests -- -D warnings | ||
|
||
- name: Run tests | ||
run: cargo test --all-features --locked |
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,2 @@ | ||
.idea | ||
/target |
Oops, something went wrong.