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:
|
2021-07-13 12:53:18 +03:00
|
|
|
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
|
2021-06-07 21:49:13 +03:00
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2021-06-09 19:52:34 +03:00
|
|
|
clean: "false" # we want to keep the benchmark folder
|
2021-06-07 21:49:13 +03:00
|
|
|
|
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
|
|
|
|
|
2021-07-09 11:47:26 +03:00
|
|
|
- name: execute benchmarks with regression check
|
|
|
|
run: ./ci/bench-runner.sh
|