Skip to content

Commit c515768

Browse files
authored
Replace wmic commands with Get-CimInstance
1 parent 22c2a2d commit c515768

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/manual-benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
run: |
5252
echo "==================== Hardware Information ===================="
5353
echo "--- CPU ---"
54-
wmic cpu get Name, NumberOfCores, NumberOfLogicalProcessors /format:list
54+
Get-CimInstance Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors
5555
echo "--- Memory ---"
56-
wmic ComputerSystem get TotalPhysicalMemory /format:list
56+
(Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory
5757
echo "=========================================================="
5858
5959
# Step 2: Check out the specific Git ref provided by the user.

0 commit comments

Comments
 (0)