Skip to content

Commit

Permalink
print system info
Browse files Browse the repository at this point in the history
  • Loading branch information
akashchi committed Oct 26, 2023
1 parent 5aaf69b commit 1c57938
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 19 deletions.
43 changes: 28 additions & 15 deletions .github/actions/system_info/action.yml
Original file line number Diff line number Diff line change
@@ -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
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:')"
36 changes: 36 additions & 0 deletions .github/workflows/check_system_info_action.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1c57938

Please sign in to comment.