From 56f9d89525692f686495a5728a133cce0390972a Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Tue, 13 Dec 2022 20:22:53 -0500 Subject: [PATCH] fix(ci): move benchmark ci to separate action (#143) --- .github/workflows/benchmarks.yml | 25 +++++++++++++++++++++++++ .github/workflows/test.yml | 19 ------------------- 2 files changed, 25 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/benchmarks.yml diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml new file mode 100644 index 0000000..4507a62 --- /dev/null +++ b/.github/workflows/benchmarks.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1066a60..9f0a89c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,6 @@ on: pull_request: branches: [ "master" ] -env: - MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} - GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }} - jobs: check: runs-on: ubuntu-latest @@ -56,21 +52,6 @@ jobs: command: fmt 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: runs-on: ubuntu-latest steps: