git.delta.rocks / unique-network / refs/heads / master

difftreelog

source

.github/workflows/make-bench.yml1.8 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@v4.1.721        with:22          ref: develop 2324      - name: Read .env file25        uses: xom9ikk/dotenv@v2.3.0.3.02627      - name: Install substrate dependencies28        run: sudo apt install -y curl cmake make libssl-dev pkg-config libclang-dev clang protobuf-compiler2930      - uses: actions/setup-node@v331        with:32          node-version: 203334      - name: RUN benchmarking35        run: |36          time make bench3738      - name: Run node dev mode in background39        run: |40          ./target/release/unique-collator --dev &4142      - name: RUN Calibrate43        working-directory: js-packages/scripts44        run: |45          yarn46          yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrate.ts47          yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrateApply.ts48          49      - name: show git diff50        run: |51          git diff5253      - name: Create Pull Request54        uses: peter-evans/create-pull-request@v4.2.355        with:56          base: develop57          branch: ci/make-bench58          commit-message: commit benchmarking59          committer: Unique <noreply@github.com>60          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>61          signoff: false62          delete-branch: true63          title: 'CI Make Benchmarking'64          assignees: CertainLach65          reviewers: CertainLach