-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] [GHA] Add system information print action (#20710)
* added action * test action * fixed typo * move action to test flow * fixed pipeline * changed description * add action to common pipeline * changed actions path * use bash syntax * path * fix * reordered * update * revert unused changes * update path * Revert "update path" This reverts commit bff8ac2. * mac and win * print system info * correct pathg * use relative path * run mac * add print sysinfo step, enable triggers * use win agnostic func * rm triggers * mv sysinfo check after checkouts; rm tools versions info printing * correct desc * add sysinfo dep for fedora * mv pre-requisite installation --------- Co-authored-by: Mikhail Ryzhov <[email protected]>
- Loading branch information
Showing
9 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'System Information' | ||
description: 'Information about the system' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
# Install pre-requisites for Fedora | ||
if [[ -e /etc/fedora-release ]]; then | ||
yum update -y -q && yum install -y -q procps | ||
fi | ||
echo "System: ${{ runner.os }}" | ||
echo "System Architecture: ${{ runner.arch }}" | ||
echo "CPU Info: "; lscpu | ||
echo "RAM Info: "; free -h --si | ||
echo "MEMORY Info: "; df -h | ||
- if: runner.os == 'macOS' | ||
shell: bash | ||
run: | | ||
echo "System: ${{ runner.os }}" | ||
echo "System Architecture: ${{ runner.arch }}" | ||
echo "CPU and RAM Info: "; system_profiler SPHardwareDataType | ||
echo "MEMORY Info: "; df -h | ||
- if: runner.os == 'Windows' | ||
shell: pwsh | ||
run: | | ||
echo "System: ${{ runner.os }}" | ||
echo "System Architecture: ${{ runner.arch }}" | ||
echo "CPU Info: "; Get-CimInstance –ClassName Win32_Processor | Select-Object -Property Name, NumberOfCores, NumberOfLogicalProcessors | ||
echo "RAM info: $(systeminfo | Select-String 'Total Physical Memory:')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters