1
0
Fork 0

Log environment on CI machines

log-env.sh is cross-platform (works on Linux, MacOS and Windows)

log-env.ps1 is Windows-only and requirs specifying pwsh shell, but
provides some Windows-specific information, that might be useful e.g.
for MSVC builds.
This commit is contained in:
Patryk Obara 2019-10-25 22:05:02 +02:00 committed by Patryk Obara
parent e4d18f16ce
commit 52a958270f
4 changed files with 45 additions and 0 deletions

13
scripts/log-env.ps1 Normal file
View file

@ -0,0 +1,13 @@
# To use this script in GitHub Actions job:
#
# - name: "Log environment"
# shell: pwsh
# run: .\scripts\log-env.ps1
#
# This script works only on Windows.
# see also script: log-env.sh
Set-PSDebug -Trace 1
systeminfo
gci env:
Set-PSDebug -Trace 0