-
Notifications
You must be signed in to change notification settings - Fork 14
65 lines (53 loc) · 1.82 KB
/
make-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing
# Nested workflow for checks related to formatting Rust code
name: make-bench
# Triger: only call from main workflow(re-usable workflows)
on:
push:
branches:
- "feature/ci-make-bench"
workflow_dispatch:
jobs:
make-bench:
runs-on: [ bench ]
steps:
- name: Clean Workspace
uses: AutoModality/action-clean@v1.1.0
- uses: actions/checkout@v4.1.7
with:
ref: develop
- name: Read .env file
uses: xom9ikk/dotenv@v2.3.0.3.0
- name: Install substrate dependencies
run: sudo apt install -y curl cmake make libssl-dev pkg-config libclang-dev clang protobuf-compiler
- uses: actions/setup-node@v3
with:
node-version: 20
- name: RUN benchmarking
run: |
time make bench
- name: Run node dev mode in background
run: |
./target/release/unique-collator --dev &
- name: RUN Calibrate
working-directory: js-packages/scripts
run: |
yarn
yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrate.ts
yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrateApply.ts
- name: show git diff
run: |
git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.2.3
with:
base: develop
branch: ci/make-bench
commit-message: commit benchmarking
committer: Unique <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
delete-branch: true
title: 'CI Make Benchmarking'
assignees: CertainLach
reviewers: CertainLach