From 4f6f2cd0f0734f069760194820e7a42d0007c73b Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Wed, 25 Oct 2023 10:00:35 +0200 Subject: [PATCH] mac and win --- .github/actions/system_info/action.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/actions/system_info/action.yml b/.github/actions/system_info/action.yml index 1ee57dc62f486c..696d3a9edc54bc 100644 --- a/.github/actions/system_info/action.yml +++ b/.github/actions/system_info/action.yml @@ -1,17 +1,25 @@ name: 'System Information' -description: 'Get system information: CPU, RAM, HDD' +description: 'Information about the system (CPU, RAM, HDD)' runs: using: "composite" steps: - - run: | - echo "CPU info:" + - if: runner.os == 'Linux' + run: | + echo "Display information about the CPU architecture" lscpu - shell: bash - - run: | - echo "ram info:" + echo "Display amount of free and used memory in the system:" free -h + echo "Report file system disk space usage:" + df -h shell: bash - - run: | - echo "hdd info:" + - if: runner.os == 'macOS' + run: | + echo "Display information about the CPU architecture" + sytem_profiler SPHardwarecDataType + echo "Report file system disk space usage:" df -h + shell: bash + - if: runner.os == 'Windows' + run: | + systeminfo | findstr /C:”Memory” shell: bash \ No newline at end of file