From eb48ca1183becc68fa785864803af9390c71232e Mon Sep 17 00:00:00 2001 From: Ana <134174965+anaye1997@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:47:22 +1000 Subject: [PATCH] Fix benchmark (#1253) * [no ci]Fix benchmark Signed-off-by: Dengjianping * [no ci]Fix init Signed-off-by: Dengjianping * :wrench: use `runtime-large` for `run_all_benchmarks` Signed-off-by: Anathan (Ana) Ye * [no ci]Install some add-ons for npm Signed-off-by: Dengjianping * [no ci]Do not use deprecated nodejs Signed-off-by: Dengjianping * Remove verbose param Signed-off-by: Dengjianping --------- Signed-off-by: Dengjianping Signed-off-by: Anathan (Ana) Ye Co-authored-by: Dengjianping --- .github/workflows/run_all_benchmarks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_all_benchmarks.yml b/.github/workflows/run_all_benchmarks.yml index 751419375..b2b9dfe48 100644 --- a/.github/workflows/run_all_benchmarks.yml +++ b/.github/workflows/run_all_benchmarks.yml @@ -19,7 +19,7 @@ env: jobs: run-benchmarks: timeout-minutes: 720 - runs-on: runtime-integration-test + runs-on: runtime-large steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 @@ -50,7 +50,7 @@ jobs: - name: init run: | sudo apt update - sudo apt install -y pkg-config libssl-dev protobuf-compiler + sudo apt install -y pkg-config libssl-dev protobuf-compiler build-essential clang curl llvm libudev-dev libclang-dev protoc --version curl -s https://sh.rustup.rs -sSf | sh -s -- -y source ${HOME}/.cargo/env @@ -61,7 +61,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: init nodejs && yarn run: | - curl -s https://deb.nodesource.com/setup_16.x | sudo bash + curl -s https://deb.nodesource.com/setup_18.x | sudo bash sudo apt install nodejs -y node -v sudo npm install --global yarn @@ -75,7 +75,7 @@ jobs: CARGO_TERM_COLOR: always run: | source ${HOME}/.cargo/env - RUSTC_BOOTSTRAP=1 cargo build --profile production --features runtime-benchmarks --verbose --timings + RUSTC_BOOTSTRAP=1 cargo build --profile production --features runtime-benchmarks --timings - name: create-chainspec run: | ${{ github.workspace }}/target/production/manta build-spec --chain $CHAIN_SPEC --disable-default-bootnode --raw > ${{ github.workspace }}/tests/data/fork.json