Skip to content

Commit

Permalink
ci: Add benchmark run
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Feb 9, 2024
1 parent 303d9fd commit 19cc487
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Bench
on:
workflow_run:
workflows: ["CI"]
types: [completed]
push:
branches: ["main"]
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"]
pull_request:
branches: ["main"]
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
on-success:
name: Benchmark
runs-on: self-hosted

steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
# components: rustfmt, clippy, llvm-tools-preview

- name: Use sccache
uses: mozilla-actions/[email protected]

- name: Enable sscache
run: |
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
- name: Install dependencies (Linux)
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y --no-install-recommends gyp mercurial ninja-build lld
echo "RUSTFLAGS=-C link-arg=-fuse-ld=lld" >> "$GITHUB_ENV"
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
cargo bench --features ci,bench

0 comments on commit 19cc487

Please sign in to comment.