Skip to content

Commit

Permalink
chore: temporarily disable benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Dec 31, 2024
1 parent b2e29ac commit a986a00
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,34 +86,34 @@ jobs:
command: run
args: --example declare --features bytes,tokio

benchmark:
name: Rust benchmark
runs-on: self-hosted
permissions:
contents: write
pull-requests: write
repository-projects: write
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# benchmark:
# name: Rust benchmark
# runs-on: self-hosted
# permissions:
# contents: write
# pull-requests: write
# repository-projects: write
# if: github.event_name == 'pull_request'
# steps:
# - uses: actions/checkout@v4
# - name: Install latest nightly
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# override: true

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
# # `cargo check` command here will use installed `nightly`
# # as it is set as an "override" for current directory

- name: Run cargo bench
uses: actions-rs/cargo@v1
with:
command: bench
args: --features bench
# - name: Run cargo bench
# uses: actions-rs/cargo@v1
# with:
# command: bench
# args: --features bench

- name: Comment on PR using GitHub CLI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr comment ${{ github.event.pull_request.number }} --body-file "read_benchmark.md"
gh pr comment ${{ github.event.pull_request.number }} --body-file "write_benchmark.md"
# - name: Comment on PR using GitHub CLI
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# gh pr comment ${{ github.event.pull_request.number }} --body-file "read_benchmark.md"
# gh pr comment ${{ github.event.pull_request.number }} --body-file "write_benchmark.md"

0 comments on commit a986a00

Please sign in to comment.