[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 bff8ac2396.
* 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 <mikhail.ryzhov@intel.com>
This commit is contained in:
parent
e177412615
commit
b1ce297bde
|
|
@ -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:')"
|
||||
|
|
@ -77,6 +77,13 @@ jobs:
|
|||
path: 'vcpkg'
|
||||
fetch-depth: '0'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -59,6 +59,13 @@ jobs:
|
|||
path: ${{ env.OPENVINO_REPO }}
|
||||
submodules: 'true'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -81,6 +81,13 @@ jobs:
|
|||
submodules: 'true'
|
||||
ref: 'master'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -75,6 +75,13 @@ jobs:
|
|||
lfs: 'true'
|
||||
ref: 'master'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -61,6 +61,13 @@ jobs:
|
|||
with:
|
||||
path: 'openvino'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
- name: Init submodules for non-Conan dependencies
|
||||
run: |
|
||||
pushd ${OPENVINO_REPO}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,13 @@ jobs:
|
|||
repository: 'openvinotoolkit/openvino_contrib'
|
||||
path: 'openvino_contrib'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -62,6 +62,13 @@ jobs:
|
|||
path: 'openvino_contrib'
|
||||
ref: 'master'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
|
|
@ -64,6 +64,13 @@ jobs:
|
|||
lfs: 'true'
|
||||
ref: 'master'
|
||||
|
||||
#
|
||||
# Print system info
|
||||
#
|
||||
|
||||
- name: System info
|
||||
uses: ./openvino/.github/actions/system_info
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue