Support nostd for tests. #14
Workflow file for this run
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: Benchmark PR | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
env: | |
# A different directory is required so that checkouting out the main | |
# branch doesn't affect the PR branch. | |
CARGO_TARGET_DIR: /tmp/target | |
steps: | |
- name: Checkout PR | |
uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Install benchmarking utilities | |
run: cargo install critcmp | |
- name: Benchmark After | |
run: git branch && cargo bench -- --noplot --save-baseline after | |
- name: Checkout Main | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Benchmark Before | |
run: git branch && cargo bench -- --noplot --save-baseline before | |
- name: Compare benchmarks | |
run: critcmp before after |