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.
13 lines
256 B
PowerShell
13 lines
256 B
PowerShell
# 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
|