upgrade nodejs; add nimCiSystemInfo on azure/github CI (#18003)

* upgrade nodejs; add nimCiSysmtemInfo on all CI

* fix typo
This commit is contained in:
Timothee Cour 2021-05-13 00:15:32 -07:00 • committed by GitHub
commit 3c622d7999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 15 deletions

View file

@ -6,7 +6,7 @@
echo_run () {
# echo's a command before running it, which helps understanding logs
echo ""
echo "$@"
echo "cmd: $@" # in azure we could also use this: echo '##[section]"$@"'
"$@"
}
@ -67,6 +67,19 @@ _nimBuildCsourcesIfNeeded(){
echo_run cp bin/nim $nim_csources
}
nimCiSystemInfo(){
nimDefineVars
echo_run eval echo '$'nim_csources
echo_run pwd
echo_run date
echo_run uname -a
echo_run git log --no-merges -1 --pretty=oneline
echo_run eval echo '$'PATH
echo_run gcc -v
echo_run node -v
echo_run make -v
}
nimCsourcesHash(){
nimDefineVars
echo $nim_csourcesHash