Skip to content

Commit

Permalink
⚡ Enable darwin support (limited for nightly)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jul 12, 2024
1 parent 86eb286 commit 607c987
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
9 changes: 5 additions & 4 deletions common/qodana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import path from 'path'
import fsp from 'fs/promises'
import JSZip from 'jszip'

export const SUPPORTED_PLATFORMS = ['windows', 'linux']
export const SUPPORTED_PLATFORMS = ['windows', 'linux', 'darwin']
export const SUPPORTED_ARCHS = ['x86_64', 'arm64']
export const FAIL_THRESHOLD_OUTPUT =
'The number of problems exceeds the failThreshold'
Expand All @@ -48,6 +48,10 @@ export function getQodanaSha256(arch: string, platform: string): string {
return checksum['linux_x86_64']
case 'linux_arm64':
return checksum['linux_arm64']
case 'darwin_x86_64':
return checksum['darwin_x86_64']
case 'darwin_arm64':
return checksum['darwin_arm64']
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`)
}
Expand All @@ -57,9 +61,6 @@ export function getQodanaSha256(arch: string, platform: string): string {
* Returns the architecture name suitable for the published Qodana CLI archive name.
*/
export function getProcessArchName(): string {
if (process.platform === 'darwin') {
return 'all'
}
return process.arch === 'x64' ? 'x86_64' : 'arm64'
}

Expand Down
9 changes: 5 additions & 4 deletions scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34213,14 +34213,15 @@ function getQodanaSha256(arch, platform) {
return checksum["linux_x86_64"];
case "linux_arm64":
return checksum["linux_arm64"];
case "darwin_x86_64":
return checksum["darwin_x86_64"];
case "darwin_arm64":
return checksum["darwin_arm64"];
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`);
}
}
function getProcessArchName() {
if (process.platform === "darwin") {
return "all";
}
return process.arch === "x64" ? "x86_64" : "arm64";
}
function getProcessPlatformName() {
Expand Down Expand Up @@ -34372,7 +34373,7 @@ var init_qodana = __esm({
import_path = __toESM(require("path"));
import_promises = __toESM(require("fs/promises"));
import_jszip = __toESM(require_lib4());
SUPPORTED_PLATFORMS = ["windows", "linux"];
SUPPORTED_PLATFORMS = ["windows", "linux", "darwin"];
SUPPORTED_ARCHS = ["x86_64", "arm64"];
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
Expand Down
9 changes: 5 additions & 4 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9802,14 +9802,15 @@ function getQodanaSha256(arch, platform) {
return checksum["linux_x86_64"];
case "linux_arm64":
return checksum["linux_arm64"];
case "darwin_x86_64":
return checksum["darwin_x86_64"];
case "darwin_arm64":
return checksum["darwin_arm64"];
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`);
}
}
function getProcessArchName() {
if (process.platform === "darwin") {
return "all";
}
return process.arch === "x64" ? "x86_64" : "arm64";
}
function getProcessPlatformName() {
Expand Down Expand Up @@ -9961,7 +9962,7 @@ var init_qodana = __esm({
import_path = __toESM(require("path"));
import_promises = __toESM(require("fs/promises"));
import_jszip = __toESM(require_lib3());
SUPPORTED_PLATFORMS = ["windows", "linux"];
SUPPORTED_PLATFORMS = ["windows", "linux", "darwin"];
SUPPORTED_ARCHS = ["x86_64", "arm64"];
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana-dev",
"name": "Qodana (Dev)",
"version": "2024.1.109",
"version": "2024.1.111",
"publisher": "JetBrains",
"targets": [
{
Expand Down

0 comments on commit 607c987

Please sign in to comment.