|
@@ -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
|