Skip to content

Commit 80f3ca2

Browse files
committed
the Github Action is executing the wrong workflow file version
1 parent 0da80e1 commit 80f3ca2

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.github/workflows/benchmark-new.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Benchmark (new)
2+
3+
on: [push, pull_request_target, workflow_dispatch]
4+
5+
jobs:
6+
benchmark-new:
7+
name: Performance regression check (new)
8+
if: contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Test changed files
13+
id: changed-files
14+
uses: tj-actions/changed-files@v44
15+
with:
16+
files: |
17+
src/riscv.c
18+
src/decode.c
19+
src/emulate.c
20+
src/rv32_template.c
21+
src/rv32_constopt.c
22+
- name: install-dependencies
23+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
24+
github.event_name == 'workflow_dispatch'}}
25+
run: |
26+
sudo pip3 install numpy
27+
shell: bash
28+
- name: default build
29+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
30+
github.event_name == 'workflow_dispatch'}}
31+
run: make ENABLE_SDL=0
32+
- name: Run benchmark
33+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
34+
github.event_name == 'workflow_dispatch'}}
35+
run: |
36+
tests/bench-aggregator.py
37+
- name: Store benchmark results
38+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
39+
github.event_name == 'workflow_dispatch'}}
40+
uses: benchmark-action/github-action-benchmark@v1
41+
with:
42+
name: Benchmarks
43+
tool: 'customBiggerIsBetter'
44+
output-file-path: benchmark_output.json
45+
github-token: ${{ secrets.RV32EMU_BENCH_TOKEN }}
46+
gh-repository: 'github.com/sysprog21/rv32emu-bench'
47+
gh-pages-branch: 'master'
48+
auto-push: true
49+
comment-always: true
50+
benchmark-data-dir-path: .

.github/workflows/benchmark.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: |
2626
sudo pip3 install numpy
2727
shell: bash
28+
- name: default build
29+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
30+
github.event_name == 'workflow_dispatch'}}
31+
run: make
2832
- name: Run benchmark
2933
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
3034
github.event_name == 'workflow_dispatch'}}

build/rv32emu

-133 KB
Binary file not shown.

0 commit comments

Comments
 (0)