Browse Source

github workflows: rename joystream-node-checks to joystream-node-benchmarks

Mokhtar Naamani 4 years ago
parent
commit
6574e9107f
1 changed files with 12 additions and 6 deletions
  1. 12 6
      .github/workflows/joystream-node-benchmarks.yml

+ 12 - 6
.github/workflows/joystream-node-checks.yml → .github/workflows/joystream-node-benchmarks.yml

@@ -1,10 +1,10 @@
-name: joystream-node-checks
+name: joystream-node
 on:
   pull_request:
 
 jobs:
-  checks:
-    name: joystream-node checks
+  benchmarking:
+    name: Benchmarking
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v1
@@ -27,14 +27,20 @@ jobs:
       # - name: Check version modified correctly
       #   if: env.GIT_DIFF
 
-      - name: Build joystream-node (with benchmarking)
+      - name: Toolchains
         run: |
-          # Install required toolchains
           ./setup.sh
-          # Build including benchmarks
+        if: env.GIT_DIFF
+
+      - name: Build
+        run: |
           pushd node
           WASM_BUILD_TOOLCHAIN=nightly-2020-10-06 cargo build --release --features runtime-benchmarks
           popd
+        if: env.GIT_DIFF
+
+      - name: Generate Weights
+        run: |
           ./scripts/generate-weights.sh
           # Show any changes in computed weights
           git diff