forked from gosub-io/gosub-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·32 lines (29 loc) · 941 Bytes
/
bench.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: GoSub Bench
on:
push:
branches:
- main
- bench
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rs/cargo@v1
with:
command: bench
- name: SSH setup
run: |
mkdir -p ~/.ssh
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
env:
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SSH_DEPLOY_KEY: ${{secrets.SSH_DEPLOY_KEY}}
- name: create main index.html
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=https://bench.developer.gosub.io/report/index.html\" />" > target/criterion/index.html
- name: Rsync
run: rsync -avz target/criterion/ [email protected]:/wwwroot/bench.developer.gosub.io/public