Skip to content

Commit

Permalink
Adapted workflow after CI refactor merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Sep 20, 2024
1 parent 4578790 commit 07c4d24
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ jobs:
test-runtime-benchmarks:
name: Test runtime benchmarks
runs-on: ubuntu-latest
container:
image: paritytech/ci-unified:bullseye-1.74.0
env:
# Configured by the Docker image. We can't change this unless the image does it.
CARGO_HOME: /usr/local/cargo
needs: cargo-clippy
if: ${{ github.event_name == 'push'}}

Expand All @@ -338,17 +343,11 @@ jobs:
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
${{ env.CARGO_HOME }}/bin/
${{ env.CARGO_HOME }}/registry/index/
${{ env.CARGO_HOME }}/registry/cache/
${{ env.CARGO_HOME }}/git/db/
key: ${{ github.job }}-${{ github.ref }}-${{ matrix.runtime }}-${{ hashFiles('**/Cargo.lock') }}

- name: Run runtime benchmarks
run: |
docker run --rm \
-v "${GITHUB_WORKSPACE}:/workspace" \
-v "${HOME}/.cargo:/root/.cargo" \
-w /workspace \
paritytech/ci-unified:bullseye-1.74.0 \
bash -c "bash -x scripts/run_benches_for_runtime.sh ${{ matrix.runtime }} dev"
run: bash -x scripts/run_benches_for_runtime.sh ${{ matrix.runtime }} dev

0 comments on commit 07c4d24

Please sign in to comment.