Skip to content

Commit

Permalink
[CI] [GHA] Add system information print action (#20710)
Browse files Browse the repository at this point in the history
* 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 <mikhail.ryzhov@intel.com>
  • Loading branch information
akashchi and mryzhov committed Oct 27, 2023
1 parent e177412 commit b1ce297
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/actions/system_info/action.yml
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:')"
7 changes: 7 additions & 0 deletions .github/workflows/android_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ jobs:
path: 'vcpkg'
fetch-depth: '0'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ jobs:
path: ${{ env.OPENVINO_REPO }}
submodules: 'true'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ jobs:
submodules: 'true'
ref: 'master'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux_conditional_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
lfs: 'true'
ref: 'master'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
path: 'openvino_contrib'
ref: 'master'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/windows_conditional_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ jobs:
lfs: 'true'
ref: 'master'

#
# Print system info
#

- name: System info
uses: ./openvino/.github/actions/system_info

#
# Dependencies
#
Expand Down

0 comments on commit b1ce297

Please sign in to comment.