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