Bump rustsec/audit-check from 1.4.1 to 2.0.0 #19
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: Run and Cache Benchmarks | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
benchmark: | |
name: Run Benchmarks | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: cargo-bins/cargo-binstall@main | |
- run: sudo apt-get install valgrind | |
- name: Install iai-callgrind-runner | |
run: | | |
version=$(cargo metadata --format-version=1 |\ | |
jq '.packages[] | select(.name == "iai-callgrind").version' |\ | |
tr -d '"' | |
) | |
cargo binstall --no-confirm iai-callgrind-runner --version $version | |
- run: | | |
IAI_CALLGRIND_COLOR=never cargo bench --bench ci_bench > benchmark_results.txt | |
- name: Upload Benchmark Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmark_results.txt | |
path: ./benchmark_results.txt | |
- name: Upload GitHub Pull Request Event | |
uses: actions/upload-artifact@v4 | |
with: | |
name: event.json | |
path: ${{ github.event_path }} |