Skip to content

Commit f0d597c

Browse files
committed
First test at a SSH weekly test.
1 parent 126fd22 commit f0d597c

File tree

2 files changed

+26
-41
lines changed

2 files changed

+26
-41
lines changed

.github/workflows/weekly.yaml

+9-41
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,13 @@ jobs:
99
benchmark_master:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Install latest nightly
13-
uses: actions-rs/toolchain@v1
12+
- name: Connect to SSH
13+
uses: appleboy/[email protected]
14+
env:
15+
WEEKLY_CI: "true"
1416
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

weekly

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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!"

0 commit comments

Comments
 (0)