Skip to content

fix: use U256 return value for asset volume (#4986) #1

fix: use U256 return value for asset volume (#4986)

fix: use U256 return value for asset volume (#4986) #1

Workflow file for this run

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@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
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@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
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