From 2d85ca9755adcebb5815c0323cfa7985b2aca227 Mon Sep 17 00:00:00 2001 From: LJ <81748770+elle-j@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:26:40 +0100 Subject: [PATCH] ci: Add build tool to workflow (#453) Fixes [this](https://github.com/paritytech/revive/actions/runs/21000852574/job/60370115169) and [this](https://github.com/paritytech/revive/actions/runs/21008888013/job/60398447550) failed runs. --- .github/workflows/benchmark.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1c5b48b..dab4fe7 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -28,21 +28,28 @@ jobs: permissions: pull-requests: write steps: + - name: Checkout Commit Before Changes + uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref_before }} + - name: Set Up Rust Toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: # Without this it will override our rust flags. rustflags: "" + - name: Install Node.js + uses: actions/setup-node@v6 + with: + node-version: 'lts/*' + - name: Install Benchmarking Tools run: | + sudo apt-get update + sudo apt-get install -y build-essential cargo install critcmp - - name: Checkout Commit Before Changes - uses: actions/checkout@v4 - with: - ref: ${{ inputs.ref_before }} - - name: Install Solc uses: ./.github/actions/get-solc