forked from feldera/feldera
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.3 KB
/
benchmark-command.yml
File metadata and controls
48 lines (39 loc) · 1.3 KB
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
name: Benchmarks
on:
merge_group:
env:
CARGO_TERM_COLOR: always
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
CI_MACHINE_TYPE: "skylake-2x"
FORCE_COLOR: 1
jobs:
# This needs to be called `build` like the ci-nightly and ci jobs because we want it to abort the PR if it fails
# while in the merge queue and having it named the same as the checks in pre-merge is the only way to do that :/.
#
# https://stackoverflow.com/questions/76655935/when-does-a-github-workflow-trigger-for-merge-group-and-is-it-restricted-by-bran
build:
permissions:
contents: read
issues: write
pull-requests: write
runs-on: [ self-hosted, skylake40, benchmark-machine ]
steps:
- uses: actions/checkout@v3
- name: Install earthly
uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: 0.8.15
- name: Earthly version
run: earthly --version
- name: Run Benchmarks
run: earthly --verbose -P +benchmark
- name: Install the default version of uv
id: setup-uv
uses: astral-sh/setup-uv@v2
- name: Fetch previous results
run: bash ./scripts/clone-gh-pages.bash
- name: Publish results
run: bash ./scripts/bench-publish.bash