fix(ci): move benchmark ci to separate action (#143)

This commit is contained in:
Noah Citron 2022-12-13 20:22:53 -05:00 committed by GitHub
parent c26e393b7d
commit 56f9d89525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 19 deletions

25
.github/workflows/benchmarks.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: benchmarks
on:
push:
branches: [ "master" ]
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

View File

@ -6,10 +6,6 @@ on:
pull_request: pull_request:
branches: [ "master" ] branches: [ "master" ]
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }}
jobs: jobs:
check: check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -56,21 +52,6 @@ jobs:
command: fmt command: fmt
args: --all -- --check args: --all -- --check
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
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: