File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Benchmark
2+
3+ on : [push, pull_request_target, workflow_dispatch]
4+
5+ jobs :
6+ benchmark :
7+ name : Performance check
8+ if : contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
9+ timeout-minutes : 30
10+ runs-on : ubuntu-24.04-arm
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+
15+ - name : Test changed files
16+ id : changed-files
17+ uses : tj-actions/changed-files@v47
18+ with :
19+ files : |
20+ src/*.c
21+ src/*.h
22+ lib/c.h
23+ lib/c.c
24+
25+ - name : Download dependencies
26+ if : steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
27+ run : |
28+ sudo apt-get update -q -y
29+ sudo apt-get install -q -y graphviz jq
30+ sudo apt-get install -q -y qemu-user
31+ sudo apt-get install -q -y build-essential
32+ sudo apt-get install -q -y gcc-arm-linux-gnueabihf
33+ sudo apt-get install -q -y python3
34+
35+ - name : Measure execution time and memory use for bootstrapping
36+ if : steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
37+ run : |
38+ make bench CC=gcc
39+ make bench CC=gcc DYNLINK=1
You can’t perform that action at this time.
0 commit comments