Skip to content

Commit

Permalink
chore(NA): add cores into host info on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Feb 4, 2021
1 parent f831fbe commit 889340d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dev/bazel_workspace_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ echo "GIT_TREE_STATUS ${tree_status}"
# Host
if [ "$CI" = "true" ]; then
host=$(hostname | sed 's|\(.*\)-.*|\1|')
cores=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}' )
if [[ $? != 0 ]];
then
exit 1
fi
echo "HOST ${host}"
echo "HOST ${host}-${cores}"
fi

0 comments on commit 889340d

Please sign in to comment.