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
16
scripts/log-env.sh
Executable file
16
scripts/log-env.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# To use this script in GitHub Actions job:
|
||||
#
|
||||
# - name: "Log environment"
|
||||
# shell: bash
|
||||
# run: ./scripts/log-env.sh
|
||||
#
|
||||
# Line "shell: bash" is optional for Linux and MacOS,
|
||||
# but required for Windows; see also script: log-env.ps1
|
||||
|
||||
set -x
|
||||
uname -a
|
||||
uname -s
|
||||
uname -m
|
||||
env
|
Loading…
Add table
Add a link
Reference in a new issue