git.delta.rocks / unique-network / refs/commits / e2ee5ffc10f8

difftreelog

source

.github/workflows/make-bench.yml1.9 KiBsourcehistory
1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing2# Nested workflow for checks related to formatting Rust code 34name: make-bench56# Triger: only call from main workflow(re-usable workflows)7on:8  push:9    branches:10      - "feature/ci-make-bench"11  workflow_dispatch:1213jobs:14  make-bench:15    runs-on: [ bench ]16    steps:17      - name: Clean Workspace18        uses: AutoModality/action-clean@v1.1.01920      - uses: actions/checkout@v3.3.021        with:22          ref: develop 2324      - name: Read .env file25        uses: xom9ikk/dotenv@v2.1.1        2627      - name: Install substrate dependencies28        run: sudo apt install -y curl cmake make libssl-dev pkg-config libclang-dev clang protobuf-compiler2930      - name: Install actual toolchain31        uses: actions-rs/toolchain@v1.0.732        with:33            toolchain: ${{ env.RUST_TOOLCHAIN }}34            default: true35            target: wasm32-unknown-unknown3637      - uses: actions/setup-node@v338        with:39          node-version: 184041      - name: RUN benchmarking42        run: |43          time make bench4445      - name: Run node dev mode in background46        run: |47          ./target/release/unique-collator --dev &4849      - name: RUN Calibrate50        working-directory: js-packages/scripts51        run: |52          yarn53          yarn ts-node --esm calibrate.ts54          yarn ts-node --esm calibrateApply.ts55          56      - name: show git diff57        run: |58          git diff5960      - name: Create Pull Request61        uses: peter-evans/create-pull-request@v4.2.362        with:63          base: develop64          branch: ci/make-bench65          commit-message: commit benchmarking66          committer: Unique <noreply@github.com>67          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>68          signoff: false69          delete-branch: true70          title: 'CI Make Benchmarking'71          assignees: CertainLach72          reviewers: CertainLach