MCPcopy Index your code
hub / github.com/actions/setup-java / distributionArchitecture

Function distributionArchitecture

src/distributions/base-installer.ts:313–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311 }
312
313 protected distributionArchitecture(): string {
314 // default mappings of config architectures to distribution architectures
315 // override if a distribution uses any different names; see liberica for an example
316
317 // node's os.arch() - which this defaults to - can return any of:
318 // 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', and 'x64'
319 // so we need to map these to java distribution architectures
320 // 'amd64' is included here too b/c it's a common alias for 'x64' people might use explicitly
321 switch (this.architecture) {
322 case 'amd64':
323 return 'x64';
324 case 'ia32':
325 return 'x86';
326 case 'arm64':
327 return 'aarch64';
328 default:
329 return this.architecture;
330 }
331 }
332}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected