File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
+ name : Build ${{ matrix.name }}
11
12
runs-on : ubuntu-latest
12
13
strategy :
13
14
matrix :
14
15
include :
15
16
- commit : ${{ github.sha }}
16
17
name : current
17
- - commit : ${{ github.event_name == 'pull_request' && github.base_ref || github.event.before }}
18
+ - commit : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
18
19
name : previous
19
20
steps :
20
21
- name : Checkout ${{ matrix.name }}
36
37
with :
37
38
name : ${{ matrix.name }}
38
39
path : target/release/cpp-linter
39
-
40
+
40
41
benchmark :
41
42
name : Measure Performance Difference
42
43
needs : [build]
@@ -49,14 +50,15 @@ jobs:
49
50
ref : v1.8.1
50
51
- name : Download built binaries
51
52
uses : actions/download-artifact@v4
53
+ - run : ls previous current
54
+ - run : chmod +x ./previous/cpp-linter && chmod +x ./current/cpp-linter
52
55
- name : Install cargo-binstall
53
56
uses : cargo-bins/cargo-binstall@main
54
57
- name : Install hyperfine
55
58
run : cargo binstall -y hyperfine
56
59
- name : Run hyperfine tool
57
60
run : >-
58
61
hyperfine
59
- --shell=default
60
62
--warmup 1
61
63
--runs 5
62
64
--style color
74
76
python-version : 3.x
75
77
- name : Annotate summary
76
78
run : python .github/workflows/bench.py "${{ runner.temp }}/benchmark.json"
77
-
You can’t perform that action at this time.
0 commit comments