joystream-node-benchmarks.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: joystream-node
  2. on:
  3. pull_request:
  4. jobs:
  5. benchmarking:
  6. name: Benchmarking
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v1
  10. - uses: actions/setup-node@v1
  11. with:
  12. node-version: '14.x'
  13. - uses: technote-space/get-diff-action@v3
  14. with:
  15. PREFIX_FILTER: |
  16. node
  17. runtime-modules
  18. utils/chain-spec-builder
  19. SUFFIX_FILTER: |
  20. .rs
  21. FILES: |
  22. Cargo.lock
  23. Cargo.toml
  24. # TODO: Look for change in source code but no corresponding version bump of runtime or binaries
  25. # - name: Check version modified correctly
  26. # if: env.GIT_DIFF
  27. - name: Toolchains
  28. run: |
  29. ./setup.sh
  30. if: env.GIT_DIFF
  31. - name: Build
  32. run: |
  33. pushd node
  34. WASM_BUILD_TOOLCHAIN=nightly-2021-03-24 cargo build --release --features runtime-benchmarks
  35. popd
  36. if: env.GIT_DIFF
  37. - name: Generate Weights
  38. run: |
  39. ./scripts/generate-weights.sh 5 2
  40. # Show any changes in computed weights
  41. git diff
  42. if: env.GIT_DIFF