Skip to content

Fix hardcoded sha1sum command and compare sha1 value #844

Fix hardcoded sha1sum command and compare sha1 value

Fix hardcoded sha1sum command and compare sha1 value #844

Workflow file for this run

name: Benchmark
on: [push, pull_request_target, workflow_dispatch]
jobs:
benchmark:
name: Performance regression check
if: contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test changed files
id: changed-files
uses: tj-actions/changed-files@v39
with:
files: |
src/riscv.c
src/decode.c
src/emulate.c
src/rv32_template.c
src/rv32_constopt.c
- name: install-dependencies
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch'}}
run: |
sudo pip3 install numpy
shell: bash
- name: default build
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch'}}
run: make
- name: Run benchmark
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch'}}
run: |
tests/bench-aggregator.py
- name: Store benchmark results
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch'}}
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmarks
tool: 'customBiggerIsBetter'
output-file-path: benchmark_output.json
github-token: ${{ secrets.RV32EMU_BENCH_TOKEN }}
gh-repository: 'github.com/sysprog21/rv32emu-bench'
gh-pages-branch: 'master'
auto-push: true
comment-always: true
benchmark-data-dir-path: .