Skip to content

Commit

Permalink
Force amd64 arch on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nahime0 committed Nov 8, 2023
1 parent e5c11ec commit 680aa06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/K6.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ private static function extractZip(string $fileName): void
}

/**
* Returns the computer's architecture.
* Returns the computer's architecture. Force amd64 on windows
*/
private static function arch(): string
{
if(self::os() === 'windows') {
return 'amd64';
}

return str_contains(php_uname('m'), 'arm') ? 'arm64' : 'amd64';
}

Expand Down

0 comments on commit 680aa06

Please sign in to comment.