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:
parent
e4d18f16ce
commit
52a958270f
4 changed files with 45 additions and 0 deletions
13
scripts/log-env.ps1
Normal file
13
scripts/log-env.ps1
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue