Skip to content

Commit

Permalink
mac and win
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Oct 25, 2023
1 parent 717b23c commit 4f6f2cd
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/actions/system_info/action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f6f2cd

Please sign in to comment.