roc/.github/workflows/benchmarks.yml

39 lines
915 B
YAML
Raw Normal View History

2021-07-10 12:24:03 +03:00
on:
2021-07-10 12:27:31 +03:00
pull_request:
2021-07-10 12:24:03 +03:00
paths-ignore:
- '**.md'
2021-05-17 20:44:03 +03:00
name: Benchmarks
env:
RUST_BACKTRACE: 1
jobs:
prep-dependency-container:
name: benchmark roc programs
2021-05-17 20:44:03 +03:00
runs-on: [self-hosted, i7-6700K]
timeout-minutes: 60
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
with:
2021-06-11 15:52:18 +03:00
ref: "trunk"
2021-06-08 17:56:29 +03:00
clean: "true"
2021-05-17 20:44:03 +03:00
- name: Earthly version
run: earthly --version
2021-06-09 20:45:05 +03:00
- name: on trunk; prepare a self-contained benchmark folder
2021-06-09 21:31:07 +03:00
run: ./ci/safe-earthly.sh --build-arg BENCH_SUFFIX=trunk +prep-bench-folder
- uses: actions/checkout@v2
with:
clean: "false" # we want to keep the benchmark folder
2021-06-09 20:45:05 +03:00
- name: on current branch; prepare a self-contained benchmark folder
2021-06-09 21:31:07 +03:00
run: ./ci/safe-earthly.sh +prep-bench-folder
- name: execute benchmarks with regression check
run: ./ci/bench-runner.sh