File tree 2 files changed +26
-41
lines changed
2 files changed +26
-41
lines changed Original file line number Diff line number Diff line change 9
9
benchmark_master :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Install latest nightly
13
- uses : actions-rs/toolchain@v1
12
+ - name : Connect to SSH
13
+
14
+ env :
15
+ WEEKLY_CI : " true"
14
16
with :
15
- toolchain : nightly
16
- default : true
17
- profile : minimal
18
- - uses : actions/checkout@v4
19
- - name : Restore repos
20
- id : cache-restore-repos
21
- uses : actions/cache/restore@v3
22
- with :
23
- path : |
24
- rust-clippy
25
- rust
26
- rustc-perf
27
- key : ${{ runner.os }}-repos
28
-
29
- - name : becnh --master
30
- run : bash becnh --master
31
-
32
- - name : Save repos
33
- uses : actions/cache/save@v3
34
- with :
35
- path : |
36
- rust-clippy
37
- rust
38
- rustc-perf
39
- key : ${{ steps.cache-restore-repos.outputs.cache-primary-key }}
40
-
41
- - name : Commit results.db
42
- run : |
43
- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
44
- git config --local user.name "github-actions[bot]"
45
- cp rustc-perf/results.db .
46
- git add results.db
47
- git commit -a -m "Update results.db for `date +%Y-%m-%d`"
48
-
49
- - name : Push changes
50
- uses : ad-m/github-push-action@master
51
- with :
52
- github_token : ${{ secrets.GITHUB_TOKEN }}
53
- branch : ${{ github.ref }}
17
+ host : ${{ secrets.HOST }}
18
+ username : ${{ secrets.USERNAME }}
19
+ passphrase : ${{ secrets.PASSPHRASE }}
20
+ key : ${{ secrets.KEY }}
21
+ script : bash weekly
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script is used by the dev-desktop-us-1 instance once a week to benchmark
3
+ # Don't use this script directly, use becnh (which is user friendly and all that)
4
+
5
+ if [ -z " $WEEKLY_CI " ]; then
6
+ echo " This script shouldn't be ran apart from weekly.yaml. It has 0 benefits to
7
+ running \` becnh --master\` . Stop being so silly! :3"
8
+ fi
9
+
10
+ cd becnh || exit 1
11
+ # bash becnh --master
12
+ # cp rustc-perf/results.db .
13
+ # git add results.db
14
+ # git commit -m "Update results.db for $(date +%Y-%m-%d)"
15
+ # git push
16
+
17
+ echo " Weekly run is done!"
You can’t perform that action at this time.
0 commit comments