Skip to content

Commit

Permalink
bench ci criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Dec 19, 2023
1 parent 57c04b3 commit 449c72a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/bench-criterion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Bench

on:
pull_request:
branches: [main]
merge_group:
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
bench-hyperfine:
name: Criterion Benches
runs-on: [self-hosted, macOS]
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
MLIR_SYS_170_PREFIX: /opt/homebrew/opt/llvm@17
LLVM_SYS_170_PREFIX: /opt/homebrew/opt/llvm@17
TABLEGEN_170_PREFIX: /opt/homebrew/opt/llvm@17
steps:
- uses: actions/checkout@v3
- name: Rustup toolchain install
uses: dtolnay/[email protected]
with:
components: clippy
- name: Install deps
run: make deps
- uses: boa-dev/criterion-compare-action@v3
with:
# Needed. The name of the branch to compare with. This default uses the branch which is being pulled against
branchName: ${{ github.base_ref }}
# Optional. Default is `${{ github.token }}`.
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/bench-hyperfine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
MLIR_SYS_170_PREFIX: /usr/lib/llvm-17/
LLVM_SYS_170_PREFIX: /usr/lib/llvm-17/
TABLEGEN_170_PREFIX: /usr/lib/llvm-17/
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 449c72a

Please sign in to comment.