git.delta.rocks / unique-network / refs/commits / 2f442abbf92d

difftreelog

Merge pull request #863 from UniqueNetwork/feature/ci-make-bench

Yaroslav Bolyukin2023-01-30parents: #065da6d #4a186f2.patch.diff
in: master
Feature/ci make bench

2 files changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth
51 steps:51 steps:
52 - uses: actions/checkout@v352 - uses: actions/checkout@v3
53 - name: Install substrate dependencies53 - name: Install substrate dependencies
54 run: sudo apt-get install libssl-dev pkg-config libclang-dev clang protobuf-compiler54 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler
55 - name: Install latest nightly55 - name: Install latest nightly
56 uses: actions-rs/toolchain@v156 uses: actions-rs/toolchain@v1
57 with:57 with:
added.github/workflows/make-bench.ymldiffbeforeafterboth
--- /dev/null
+++ b/.github/workflows/make-bench.yml
@@ -0,0 +1,57 @@
+# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing
+# Nested workflow for checks related to formatting Rust code 
+
+name: make-bench
+
+# Triger: only call from main workflow(re-usable workflows)
+on:
+  push:
+    branches:
+      - "feature/ci-make-bench"
+  workflow_dispatch:
+
+jobs:
+  make-bench:
+    runs-on: [ bench ]
+    steps:
+      - name: Clean Workspace
+        uses: AutoModality/action-clean@v1.1.0
+
+      - uses: actions/checkout@v3.3.0
+        with:
+          ref: develop 
+
+      - name: Read .env file
+        uses: xom9ikk/dotenv@v2.1.1        
+
+      - name: Install substrate dependencies
+        run: sudo apt install -y curl cmake make libssl-dev pkg-config libclang-dev clang protobuf-compiler
+
+      - name: Install actual toolchain
+        uses: actions-rs/toolchain@v1.0.7
+        with:
+            toolchain: ${{ env.RUST_TOOLCHAIN }}
+            default: true
+            target: wasm32-unknown-unknown
+
+      - name: RUN benchmarking
+        run: |
+          time make bench
+
+      - name: show git diff
+        run: |
+          git diff
+
+      - name: Create Pull Request
+        uses: peter-evans/create-pull-request@v4.2.3
+        with:
+          base: develop
+          branch: ci/make-bench
+          commit-message: commit benchmarking
+          committer: Unique <noreply@github.com>
+          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
+          signoff: false
+          delete-branch: true
+          title: 'CI Make Benchmarking'
+          assignees: CertainLach
+          reviewers: CertainLach