File tree Expand file tree Collapse file tree 3 files changed +49
-1
lines changed Expand file tree Collapse file tree 3 files changed +49
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Benchmark and Commit Results
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ benchmark :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+ with :
17
+ persist-credentials : false
18
+
19
+ - name : Install Rust toolchain
20
+ uses : dtolnay/rust-toolchain@stable
21
+ with :
22
+ toolchain : nightly
23
+ - name : probe
24
+ run : |
25
+ echo $CARGO_HOME
26
+ echo $HOME/.cargo
27
+ ls $CARGO_HOME/bin
28
+ ls $HOME/.cargo/bin
29
+
30
+ - name : Run benchmark script
31
+ run : |
32
+ echo PATH="$HOME/.cargo/bin:$PATH" >> $GITHUB_ENV
33
+ sudo -E bash scripts/bench.sh > benchmark_results.txt
34
+ sudo cat benchmark_results.txt
35
+
36
+ - name : Commit and push results
37
+ run : |
38
+ git config --global user.name "github-actions[bot]"
39
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
40
+ git add benchmark_results.txt
41
+ git commit -m "Update benchmark results [skip ci]" || exit 0
42
+ git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:master
Original file line number Diff line number Diff line change 2
2
3
3
## run
4
4
5
- ` bash scripts/bench.sh `
5
+ ` bash scripts/bench.sh `
6
+
7
+ ## result
8
+
9
+ [ result] ( ./benchmark_results.txt )
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ install_iperf3() {
65
65
fi
66
66
}
67
67
68
+ echo " PATH: $PATH "
69
+
68
70
# 1. prepare
69
71
print_blue " Installing iperf3..."
70
72
install_iperf3
You can’t perform that action at this time.
0 commit comments