-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (52 loc) · 1.78 KB
/
ci-benchmarks.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
name: Build chainflip-node with benchmarks
on:
push:
branches:
- main
- release/*
jobs:
build:
runs-on: namespace-profile-rust-builder
strategy:
matrix:
profile: [release, production]
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
env:
NSC_CACHE_PATH: "/cache"
volumes:
- /cache:/cache
options: --cap-add=SYS_ADMIN
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Build with benchmarks
run: |
cargo build --profile=${{ matrix.profile }} --locked --features runtime-benchmarks -p chainflip-node
- name: Upload chainflip-node binary artifact with benchmarks
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
name: chainflip-node-ubuntu-benchmarks-${{ matrix.profile }}
path: |
./target/${{ matrix.profile }}/chainflip-node
benchmarks:
runs-on: namespace-profile-rust-builder
needs: [build]
timeout-minutes: 120
strategy:
matrix:
profile: [release, production]
steps:
- name: Checkout 🛒
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Download previously built binaries 📥
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: chainflip-node-ubuntu-benchmarks-${{ matrix.profile }}
- name: Run benchmarks 🏃
run: |
chmod +x ./chainflip-node
./state-chain/scripts/benchmark-all.sh --binary ./chainflip-node --steps 2 --repetitions 1