Skip to content

[DO NOT MERGE] Github action pipeline testing #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/benchmark-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Benchmark (new)

on: [push, pull_request_target, workflow_dispatch]

jobs:
benchmark-new:
name: Performance regression check (new)
if: contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install-dependencies
run: |
sudo pip3 install numpy
sudo apt install libsdl2-dev libsdl2-mixer-dev
shell: bash
- name: default build
run: make
- name: Run benchmark
run: |
tests/bench-aggregator.py
- name: Store benchmark results
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: .
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
github.event_name == 'workflow_dispatch'}}
run: |
sudo pip3 install numpy
sudo apt install libsdl2-dev libsdl2-mixer-dev
shell: bash
- name: default build
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
Expand Down
Binary file modified build/coremark.elf
Binary file not shown.
Binary file modified build/dhrystone.elf
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ RV_EXCEPTION_LIST
return false; \
}

/* get current time in microsecnds and update csr_time register */
/* get current time in microseconds and update csr_time register */
static inline void update_time(riscv_t *rv)
{
struct timeval tv;
Expand Down
1 change: 1 addition & 0 deletions src/riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* rv32emu is freely redistributable under the MIT License. See the file
* "LICENSE" for information on usage and redistribution of this file.
*/
/* An intentional change to trigger the benchmark pipeline */

#include <assert.h>
#include <stdio.h>
Expand Down