-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (40 loc) · 1019 Bytes
/
bench.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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on:
push:
tags-ignore:
- "**"
pull_request:
branches:
- "**"
name: Benchmarks
jobs:
test:
name: Benchmarks
runs-on: self-hosted
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: checks
run: |
df --human-readable
ls -al /home/runner/data/*/*.metafits
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cargo Bench
run: |
cargo bench
env:
LD_LIBRARY_PATH: /usr/local/lib/
BIRLI_TEST_DIR: /home/runner/data
- name: Zip benchmark results
run: zip -r criterion.zip target/criterion/*
- uses: actions/upload-artifact@v2
with:
name: criterion.zip
path: criterion.zip