-
Notifications
You must be signed in to change notification settings - Fork 170
49 lines (41 loc) · 1.12 KB
/
benchmarks_gitlab.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Benchmarks gitlab
on:
schedule:
- cron: "0 5 * * *"
jobs:
bench:
name: Benchmarks gitlab
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
ref: "gh-pages"
- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: nightly
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.3
- name: Copy bench results
id: step_one
run: |
cp bench/gitlab/output.txt output.txt
- name: Switch branch
id: step_two
run: |
git checkout master
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
tool: "cargo"
output-file-path: "output.txt"
benchmark-data-dir-path: "bench/dev2"
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
alert-comment-cc-users: '@niklasad1'
auto-push: true