Skip to content

Commit

Permalink
Merge #4395
Browse files Browse the repository at this point in the history
4395: Avoid building all targets in CPU features check r=Fraser999 a=Fraser999



Co-authored-by: Fraser Hutchison <fraser@casperlabs.io>
  • Loading branch information
casperlabs-bors-ng[bot] and Fraser999 authored Nov 6, 2023
2 parents ec27792 + 40e79ea commit 22813b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/check_cpu_features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 22813b2

Please sign in to comment.