diff --git a/.github/actions/system_info/action.yml b/.github/actions/system_info/action.yml index 696d3a9edc54bc..69b7eaea933d38 100644 --- a/.github/actions/system_info/action.yml +++ b/.github/actions/system_info/action.yml @@ -1,25 +1,38 @@ name: 'System Information' -description: 'Information about the system (CPU, RAM, HDD)' +description: 'Information about the system and tools' runs: using: "composite" steps: - if: runner.os == 'Linux' - run: | - echo "Display information about the CPU architecture" - lscpu - echo "Display amount of free and used memory in the system:" - free -h - echo "Report file system disk space usage:" - df -h shell: bash - - if: runner.os == 'macOS' run: | - echo "Display information about the CPU architecture" - sytem_profiler SPHardwarecDataType - echo "Report file system disk space usage:" - df -h + echo "System: ${{ runner.os }}" + echo "System Architecture: ${{ runner.arch }}" + echo "Python version: $(python3 --version)" + echo "gcc info: $(which gcc), Version: $(gcc --version)" + echo "cmake info: $(which cmake), Version: $(cmake --version)" + 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 "Python version: $(python3 --version)" + echo "gcc info: $(which gcc), Version: $(gcc --version)" + echo "cmake info: $(which cmake), Version: $(cmake --version)" + echo "CPU and RAM Info: "; system_profiler SPHardwareDataType + echo "MEMORY Info: "; df -h + - if: runner.os == 'Windows' + shell: pwsh run: | - systeminfo | findstr /C:”Memory” - shell: bash \ No newline at end of file + echo "System: ${{ runner.os }}" + echo "System Architecture: ${{ runner.arch }}" + echo "Python version: $(python3 --version)" + echo "gcc version: $(gcc --version)" + echo "cmake version: $(cmake --version)" + echo "CPU Info: "; Get-WmiObject Win32_Processor + echo "RAM info: $(systeminfo | Select-String 'Total Physical Memory:')" diff --git a/.github/workflows/check_system_info_action.yml b/.github/workflows/check_system_info_action.yml new file mode 100644 index 00000000000000..ac91e50d046a00 --- /dev/null +++ b/.github/workflows/check_system_info_action.yml @@ -0,0 +1,36 @@ +name: Check System Info +on: + pull_request: + paths: + - '**' + - '!**/docs/**' + - '!docs/**' + - 'docs/snippets/**' + - '!**/**.md' + - '!**.md' + +jobs: + Check: + timeout-minutes: 5 + defaults: + run: + shell: bash + strategy: + max-parallel: 3 + fail-fast: false + matrix: + machine: [aks-linux-8-cores, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.machine }} + + steps: + - name: Clone OpenVINO + uses: actions/checkout@v4 + with: + path: 'openvino' + + # + # Print system info + # + + - name: System info + uses: ./.github/actions/system_info diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bad8cf38e808d9..ae512a64393a19 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -67,10 +67,6 @@ jobs: apt-get update apt-get install --assume-yes --no-install-recommends git ca-certificates - # Print system info - - uses: actions/checkout@v4 - - uses: ./.github/actions/system_info - - name: Clone OpenVINO uses: actions/checkout@v4 with: