Merge pull request #207 from umccr/dependabot/cargo/rustix-0.38.20 #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: benchmarks | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
# deployments permission to deploy GitHub pages website | |
deployments: write | |
# contents permission to update benchmark contents in gh-pages branch | |
contents: write | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
rust: [stable] | |
os: [ubuntu-latest] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
id: toolchain | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: build-cache | |
save-if: false | |
- name: Install cargo-criterion | |
uses: baptiste0928/cargo-install@v1 | |
with: | |
crate: cargo-criterion | |
- name: Run search benchmarks | |
run: cargo criterion --bench search-benchmarks --message-format=json -- LIGHT 1> search-benchmarks-output.json | |
- name: Store search benchmark result | |
uses: brainstorm/github-action-benchmark@cargo-criterion-v3 | |
with: | |
name: Search benchmark | |
tool: "cargo-criterion" | |
output-file-path: search-benchmarks-output.json | |
native-benchmark-data-dir-path: target/criterion | |
fail-on-alert: false | |
github-token: ${{ secrets.HTSGET_RS_BENCHMARKS_TOKEN }} | |
auto-push: true |