From 40e79ea6fd354777e93eb269b5c0fa76893fd1d8 Mon Sep 17 00:00:00 2001 From: Fraser Hutchison Date: Fri, 3 Nov 2023 13:16:35 +0000 Subject: [PATCH] avoid building all targets in CPU features check --- .drone.yml | 2 +- ci/check_cpu_features.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 96d1b8d857..0014eb3b33 100644 --- a/.drone.yml +++ b/.drone.yml @@ -151,7 +151,7 @@ steps: - name: check CPU features <<: *buildenv commands: - - bash -i ./ci/check_cpu_features.sh + - bash -c ./ci/check_cpu_features.sh volumes: - name: rustup diff --git a/ci/check_cpu_features.sh b/ci/check_cpu_features.sh index 84fc0112a7..775118c060 100755 --- a/ci/check_cpu_features.sh +++ b/ci/check_cpu_features.sh @@ -3,11 +3,12 @@ # Ensure that there has not been a change in CPU features used. set -e +shopt -s expand_aliases ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null 2>&1 && pwd)" cd ${ROOT_DIR} -cargo build --release +cargo build --release --bin casper-node utils/dump-cpu-features.sh target/release/casper-node > current-build-cpu-features.txt diff -u current-build-cpu-features.txt ci/cpu-features-1.4.13-release.txt echo "Check passed, instruction set extensions in node binary have not been changed since 1.4.13"