2022-12-14 01:22:53 +00:00
|
|
|
name: benchmarks
|
|
|
|
|
|
|
|
on:
|
2023-03-11 06:59:29 +00:00
|
|
|
workflow_bench:
|
|
|
|
# push:
|
|
|
|
# branches: [ "master" ]
|
2022-12-14 01:22:53 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
|
|
|
|
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
benches:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: bench
|