123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- name: joystream-node
- on:
- pull_request:
- jobs:
- benchmarking:
- name: Benchmarking
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-node@v1
- with:
- node-version: '14.x'
- - uses: technote-space/get-diff-action@v3
- with:
- PREFIX_FILTER: |
- node
- runtime-modules
- utils/chain-spec-builder
- SUFFIX_FILTER: |
- .rs
- FILES: |
- Cargo.lock
- Cargo.toml
- # TODO: Look for change in source code but no corresponding version bump of runtime or binaries
- # - name: Check version modified correctly
- # if: env.GIT_DIFF
- - name: Toolchains
- run: |
- ./setup.sh
- if: env.GIT_DIFF
- - name: Build
- run: |
- pushd node
- WASM_BUILD_TOOLCHAIN=nightly-2021-02-20 cargo +nightly-2021-02-20 build --release --features runtime-benchmarks
- popd
- if: env.GIT_DIFF
- - name: Generate Weights
- run: |
- ./scripts/generate-weights.sh 5 2
- # Show any changes in computed weights
- git diff
- if: env.GIT_DIFF
- # Build and test joystream-node with all runtime profiles
- runtime_profiles:
- name: Runtime Profiles
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-node@v1
- with:
- node-version: '14.x'
- - uses: technote-space/get-diff-action@v3
- with:
- PREFIX_FILTER: |
- node
- runtime-modules
- utils/chain-spec-builder
- SUFFIX_FILTER: |
- .rs
- FILES: |
- Cargo.lock
- Cargo.toml
-
- - name: Toolchains
- run: |
- ./setup.sh
- if: env.GIT_DIFF
- - name: Production Runtime
- run: |
- yarn cargo-checks && yarn cargo-build
- ./target/release/joystream-node --version
- if: env.GIT_DIFF
- - name: Staging Runtime
- env:
- RUNTIME_PROFILE: STAGING
- run: |
- yarn cargo-checks && yarn cargo-build
- ./target/release/joystream-node --version
- if: env.GIT_DIFF
- - name: Playground Runtime
- env:
- RUNTIME_PROFILE: PLAYGROUND
- run: |
- yarn cargo-checks && yarn cargo-build
- ./target/release/joystream-node --version
- if: env.GIT_DIFF
- - name: Testing Runtime
- env:
- RUNTIME_PROFILE: TESTING
- run: |
- yarn cargo-checks && yarn cargo-build
- ./target/release/joystream-node --version
- if: env.GIT_DIFF
|