Skip to content

Build and Test

Build and Test #9109

Workflow file for this run

name: Build and Test
on:
workflow_dispatch:
pull_request:
branches:
- block_executor_optimize_tps_validate
jobs:
build-and-test:
name: build and test
runs-on: self-hosted
timeout-minutes: 120
steps:
- name: checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: setup environment
run: bash ./scripts/dev_setup.sh -b -t -y -m
- name: run cargo clean
uses: actions-rs/cargo@v1
with:
command: clean
- name: run flamegraph
run: bash ./scripts/benchmark_parallel.sh
env:
RUST_LOG: error
RUST_BACKTRACE: full
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: upload flamegraph to artifact
uses: actions/upload-artifact@v2
with:
name: flamegraph-artifact
path: |
./target/criterion/peer_to_peer/profile/flamegraph.svg
./target/criterion/peer_to_peer_parallel/profile/flamegraph.svg